Previous 199869 Revisions Next

r24799 Wednesday 7th August, 2013 at 19:07:44 UTC by Angelo Salese
Fix compile
[src/lib/web]mongoose.c

trunk/src/lib/web/mongoose.c
r24798r24799
181181typedef unsigned short  uint16_t;
182182typedef unsigned __int64 uint64_t;
183183typedef __int64   int64_t;
184#define INT64_MAX  9223372036854775807
184#if defined(__GNUC__) || defined(_MSC_VER)
185#define U64(val) val##ULL
186#else
187#define U64(val) val
188#endif
189#define INT64_MAX  U64(9223372036854775807)
185190#endif // HAVE_STDINT
186191
187192// POSIX dirent interface
r24798r24799
43024307    // there is no other thread can save into the same file simultaneously.
43034308    fp = NULL;
43044309    // Construct destination file name. Do not allow paths to have slashes.
4305    if ((s = strrchr(fname, '/')) == NULL &&
4310    if ((s = strrchr(fname, '/')) == NULL &&
43064311      (s = strrchr(fname, '\\')) == NULL) {
43074312            s = fname;
43084313    }
4309   
4314
43104315    // Open file in binary mode. TODO: set an exclusive lock.
43114316    snprintf(path, sizeof(path), "%s/%s", destination_dir, s);
43124317    if ((fp = fopen(path, "wb")) == NULL) {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team