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 <stdio.h>
#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif
int
write_if_change(char* outbuf, char* filename)

View file

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

View file

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