mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Using // is not very good idea..
This commit is contained in:
parent
6165cd5c89
commit
aab64595fa
3 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@ my_string mysql_unix_port=0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MSDOS) || defined(__WIN__)
|
#if defined(MSDOS) || defined(__WIN__)
|
||||||
// socket_errno is defined in global.h for all platforms
|
/* socket_errno is defined in global.h for all platforms */
|
||||||
#define perror(A)
|
#define perror(A)
|
||||||
#else
|
#else
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -19,7 +19,7 @@ This file is public domain and comes with NO WARRANTY of any kind */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __EMX__
|
#ifdef __EMX__
|
||||||
// chdir2 support also drive change
|
/* chdir2 support also drive change */
|
||||||
#define chdir _chdir2
|
#define chdir _chdir2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -85,10 +85,10 @@ my_string my_tempnam(const char *dir, const char *pfx,
|
||||||
dir=temp;
|
dir=temp;
|
||||||
}
|
}
|
||||||
#ifdef OS2
|
#ifdef OS2
|
||||||
// changing environ variable doesn't work with VACPP
|
/* changing environ variable doesn't work with VACPP */
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
sprintf( buffer, "TMP=%s", dir);
|
sprintf( buffer, "TMP=%s", dir);
|
||||||
// remove ending backslash
|
/* remove ending backslash */
|
||||||
if (buffer[strlen(buffer)-1] == '\\')
|
if (buffer[strlen(buffer)-1] == '\\')
|
||||||
buffer[strlen(buffer)-1] = '\0';
|
buffer[strlen(buffer)-1] = '\0';
|
||||||
putenv( buffer);
|
putenv( buffer);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue