Skip to content

Commit

Permalink
More Visual Studio fixes for Lemon.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 19, 2010
1 parent 8a333d7 commit 5fc59ff
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions misc/lemon.c
Expand Up @@ -26,8 +26,13 @@
#endif

#ifdef __WIN32__
//extern int access();
#include <io.h>
#ifdef __cplusplus
extern "C" {
#endif
extern int access(const char *path, int mode);
#ifdef __cplusplus
}
#endif
#else
#include <unistd.h>
#endif
Expand Down Expand Up @@ -3302,7 +3307,7 @@ PRIVATE char *append_str(const char *zText, int n, int p1, int p2){
}
n = lemonStrlen(zText);
}
if( n+sizeof(zInt)*2+used >= alloced ){
if( (int) (n+sizeof(zInt)*2+used) >= alloced ){
alloced = n + sizeof(zInt)*2 + used + 200;
z = (char *) realloc(z, alloced);
}
Expand Down

0 comments on commit 5fc59ff

Please sign in to comment.