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"
# elif SIZEOF_LONG_LONG_INT==8
/
#define Int_FORMAT "%I64d"
#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;
IOSTREAM *s;
IOENC enc = ENC_UNKNOWN;
#if __WINDOWS__
int wait = TRUE;
#endif
#if __ANDROID__
if (strstr(path, "/assets/") == path) {
@ -2914,8 +2917,10 @@ Sopen_file(const char *path, const char *how)
case 'r': /* no record */
flags &= ~SIO_RECORDPOS;
break;
case 'L': /* lock r: read, w: write */
// wait = FALSE;
#if __WINDOWS__
case 'L': /* lock r: read, w: write */
wait = FALSE;
#endif
/*FALLTHROUGH*/
case 'l': /* lock r: read, w: write */
if ( *++how == 'r' )