1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-02 03:50:36 +00:00

Introduce QB64_LINUXONLY and _UNIX

This commit is contained in:
Luke Ceddia 2018-01-10 22:50:07 +11:00
parent a1a0536d69
commit 1320d7fe52
3 changed files with 119 additions and 1144 deletions

View file

@ -22,10 +22,8 @@
#define QB64_GL1
#define QB64_GLUT
#ifdef QB64_LINUX
#ifndef QB64_MACOSX
#ifdef QB64_LINUXONLY
#define QB64_X11
#endif
#endif
#ifdef DEPENDENCY_CONSOLE_ONLY

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,9 @@
* QB64_MICROSOFT: Are we compiling with Visual Studio?
* QB64_GCC: Are we compiling with gcc?
* QB64_MINGW: Are we compiling with MinGW, specifically? (Set in addition to QB64_GCC)
* QB64_LINUX: Is this a Unix system? (really should be QB64_UNIX)
* QB64_LINUX: Is this a Unix system?
* QB64_UNIX: Alias of above
* QB64_LINUXONLY: Is this a Linux system?
* QB64_MACOSX: Is this MacOSX, or MacOS or whatever Apple calls it now?
* QB64_32: A 32bit system (the default)
* QB64_64: A 64bit system (assumes all Macs are 64 bit)
@ -13,18 +15,24 @@
#define QB64_WINDOWS
#define QB64_BACKSLASH_FILESYSTEM
#ifdef _MSC_VER
//Do we even support non-mingw compilers on Windows?
//Do we even support non-mingw compilers on Windows?
#define QB64_MICROSOFT
#else
#define QB64_GCC
#define QB64_MINGW
#endif
#else
#elif defined(__APPLE__)
#define QB64_MACOSX
#define QB64_LINUX
#define QB64_UNIX
#define QB64_GCC
#ifdef __APPLE__
#define QB64_MACOSX
#endif
#elif defined(__linux__)
#define QB64_LINUXONLY
#define QB64_LINUX
#define QB64_UNIX
#define QB64_GCC
#else
#error "Unknown system; refusing to build. Edit os.h if needed"
#endif
#if _WIN64 || __x86_64__ || __ppc64__ || QB64_MACOSX