mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Changes to support mingw
This commit is contained in:
parent
9faeb2bfb9
commit
926e6c9225
|
@ -393,7 +393,7 @@ void CombinerInfo::_saveShadersStorage() const
|
||||||
wchar_t fileName[PLUGIN_PATH_SIZE];
|
wchar_t fileName[PLUGIN_PATH_SIZE];
|
||||||
getStorageFileName(fileName);
|
getStorageFileName(fileName);
|
||||||
|
|
||||||
#ifdef OS_WINDOWS
|
#if defined(OS_WINDOWS) && !defined(MINGW)
|
||||||
std::ofstream fout(fileName, std::ofstream::binary | std::ofstream::trunc);
|
std::ofstream fout(fileName, std::ofstream::binary | std::ofstream::trunc);
|
||||||
#else
|
#else
|
||||||
char fileName_c[PATH_MAX];
|
char fileName_c[PATH_MAX];
|
||||||
|
@ -431,7 +431,7 @@ bool CombinerInfo::_loadShadersStorage()
|
||||||
getStorageFileName(fileName);
|
getStorageFileName(fileName);
|
||||||
m_configOptionsBitSet = _getConfigOptionsBitSet();
|
m_configOptionsBitSet = _getConfigOptionsBitSet();
|
||||||
|
|
||||||
#ifdef OS_WINDOWS
|
#if defined(OS_WINDOWS) && !defined(MINGW)
|
||||||
std::ifstream fin(fileName, std::ofstream::binary);
|
std::ifstream fin(fileName, std::ofstream::binary);
|
||||||
#else
|
#else
|
||||||
char fileName_c[PATH_MAX];
|
char fileName_c[PATH_MAX];
|
||||||
|
|
|
@ -42,8 +42,8 @@ inline void LOG( u16 type, const char * format, ... ) {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OS_WINDOWS
|
#if defined(OS_WINDOWS) && !defined(MINGW)
|
||||||
#include "windows/GLideN64_Windows.h"
|
#include "windows/GLideN64_windows.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
inline void debugPrint(const char * format, ...) {
|
inline void debugPrint(const char * format, ...) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user