Use fopen on Windows for now

This commit is contained in:
Joshua Granick
2014-07-12 17:37:10 -07:00
parent 531af0b6d8
commit 7e207a8232
2 changed files with 12 additions and 12 deletions

View File

@@ -12,17 +12,17 @@ namespace lime {
typedef unsigned char uint8; typedef unsigned char uint8;
#if HX_WINDOWS /*#if HX_WINDOWS
typedef wchar_t OSChar; typedef wchar_t OSChar;
#define val_os_string val_wstring #define val_os_string val_wstring
#else #else*/
typedef char OSChar; typedef char OSChar;
#define val_os_string val_string #define val_os_string val_string
#endif //#endif
// If you put this structure on the stack, then you do not have to worry about GC. // If you put this structure on the stack, then you do not have to worry about GC.
@@ -51,15 +51,15 @@ namespace lime {
}; };
#ifdef HX_WINDOWS /*#ifdef HX_WINDOWS
typedef wchar_t OSChar; typedef wchar_t OSChar;
#define val_os_string val_wstring #define val_os_string val_wstring
#define OpenRead(x) _wfopen(x,L"rb") #define OpenRead(x) _wfopen(x,L"rb")
#define OpenOverwrite(x) _wfopen(x,L"wb") // [ddc] #define OpenOverwrite(x) _wfopen(x,L"wb") // [ddc]
#else #else*/
typedef char OSChar; //typedef char OSChar;
#define val_os_string val_string //#define val_os_string val_string
#if defined(IPHONE) #if defined(IPHONE)
FILE *OpenRead(const char *inName); FILE *OpenRead(const char *inName);
@@ -76,7 +76,7 @@ namespace lime {
#define OpenRead(x) fopen(x,"rb") #define OpenRead(x) fopen(x,"rb")
#define OpenOverwrite(x) fopen(x,"wb") // [ddc] #define OpenOverwrite(x) fopen(x,"wb") // [ddc]
#endif #endif
#endif //#endif
} }