1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

"extern" declarations inside function bodies are not every compiler's

favorite, so move to global scope. Additionally, at least under Unix
environment use <unistd.h> to get the proper prototype instead of using
a K&R-style own declaration. (CVS 4190)

FossilOrigin-Name: 5955a77d6c902dc65897ba19d6e06db3e10bd3ee
This commit is contained in:
rse
2007-07-30 18:31:53 +00:00
parent 43e47c8ec1
commit 8f30448a30
3 changed files with 13 additions and 8 deletions

View File

@ -19,6 +19,12 @@
# endif
#endif
#ifdef __WIN32__
extern int access();
#else
#include <unistd.h>
#endif
/* #define PRIVATE static */
#define PRIVATE
@ -2904,7 +2910,6 @@ int modemask;
char *pathlist;
char *path,*cp;
char c;
extern int access();
#ifdef __WIN32__
cp = strrchr(argv0,'\\');