This commit is contained in:
Vítor Santos Costa 2014-06-16 14:44:04 +01:00
parent 0b569a374e
commit 07c9aa5bca
2 changed files with 8 additions and 3 deletions

View File

@ -80,7 +80,7 @@ typedef void *Atom;
#define UInt_FORMAT "%lu" #define UInt_FORMAT "%lu"
# elif SIZEOF_LONG_LONG_INT==8 # elif SIZEOF_LONG_LONG_INT==8
/
#define Int_FORMAT "%I64d" #define Int_FORMAT "%I64d"
#define UInt_FORMAT "%I64u" #define UInt_FORMAT "%I64u"

View File

@ -2897,6 +2897,9 @@ Sopen_file(const char *path, const char *how)
enum {lnone=0,lread,lwrite} lock = lnone; enum {lnone=0,lread,lwrite} lock = lnone;
IOSTREAM *s; IOSTREAM *s;
IOENC enc = ENC_UNKNOWN; IOENC enc = ENC_UNKNOWN;
#if __WINDOWS__
int wait = TRUE;
#endif
#if __ANDROID__ #if __ANDROID__
if (strstr(path, "/assets/") == path) { if (strstr(path, "/assets/") == path) {
@ -2914,8 +2917,10 @@ Sopen_file(const char *path, const char *how)
case 'r': /* no record */ case 'r': /* no record */
flags &= ~SIO_RECORDPOS; flags &= ~SIO_RECORDPOS;
break; break;
case 'L': /* lock r: read, w: write */ #if __WINDOWS__
// wait = FALSE; case 'L': /* lock r: read, w: write */
wait = FALSE;
#endif
/*FALLTHROUGH*/ /*FALLTHROUGH*/
case 'l': /* lock r: read, w: write */ case 'l': /* lock r: read, w: write */
if ( *++how == 'r' ) if ( *++how == 'r' )