Some fixes for MS_VC.

svn path=/trunk/; revision=11092
This commit is contained in:
Steven Edwards 2004-09-27 04:32:52 +00:00
parent 6a64eeeb08
commit 73a66a9cc9
3 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
#endif
int int
write_if_change(char* outbuf, char* filename) write_if_change(char* outbuf, char* filename)

View file

@ -13,10 +13,10 @@
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#endif #endif
#ifndef WIN32
#ifndef MAX_PATH #ifndef MAX_PATH
#define MAX_PATH 260 #define MAX_PATH 260
#endif #endif
#ifndef WIN32
#define DIR_SEPARATOR_CHAR '/' #define DIR_SEPARATOR_CHAR '/'
#define DIR_SEPARATOR_STRING "/" #define DIR_SEPARATOR_STRING "/"
#else #else

View file

@ -21,10 +21,10 @@
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <ctype.h> #include <ctype.h>
#ifndef WIN32
#ifndef MAX_PATH #ifndef MAX_PATH
#define MAX_PATH 260 #define MAX_PATH 260
#endif #endif
#ifndef WIN32
#define DIR_SEPARATOR_CHAR '/' #define DIR_SEPARATOR_CHAR '/'
#define DIR_SEPARATOR_STRING "/" #define DIR_SEPARATOR_STRING "/"
#else #else