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:
@ -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,'\\');
|
||||
|
Reference in New Issue
Block a user