mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 04:50:22 +00:00
Introduce QB64_LINUXONLY and _UNIX
This commit is contained in:
parent
a1a0536d69
commit
1320d7fe52
|
@ -22,10 +22,8 @@
|
||||||
#define QB64_GL1
|
#define QB64_GL1
|
||||||
#define QB64_GLUT
|
#define QB64_GLUT
|
||||||
|
|
||||||
#ifdef QB64_LINUX
|
#ifdef QB64_LINUXONLY
|
||||||
#ifndef QB64_MACOSX
|
|
||||||
#define QB64_X11
|
#define QB64_X11
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEPENDENCY_CONSOLE_ONLY
|
#ifdef DEPENDENCY_CONSOLE_ONLY
|
||||||
|
|
1239
internal/c/libqb.cpp
1239
internal/c/libqb.cpp
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,9 @@
|
||||||
* QB64_MICROSOFT: Are we compiling with Visual Studio?
|
* QB64_MICROSOFT: Are we compiling with Visual Studio?
|
||||||
* QB64_GCC: Are we compiling with gcc?
|
* QB64_GCC: Are we compiling with gcc?
|
||||||
* QB64_MINGW: Are we compiling with MinGW, specifically? (Set in addition to QB64_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_MACOSX: Is this MacOSX, or MacOS or whatever Apple calls it now?
|
||||||
* QB64_32: A 32bit system (the default)
|
* QB64_32: A 32bit system (the default)
|
||||||
* QB64_64: A 64bit system (assumes all Macs are 64 bit)
|
* QB64_64: A 64bit system (assumes all Macs are 64 bit)
|
||||||
|
@ -13,18 +15,24 @@
|
||||||
#define QB64_WINDOWS
|
#define QB64_WINDOWS
|
||||||
#define QB64_BACKSLASH_FILESYSTEM
|
#define QB64_BACKSLASH_FILESYSTEM
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
//Do we even support non-mingw compilers on Windows?
|
//Do we even support non-mingw compilers on Windows?
|
||||||
#define QB64_MICROSOFT
|
#define QB64_MICROSOFT
|
||||||
#else
|
#else
|
||||||
#define QB64_GCC
|
#define QB64_GCC
|
||||||
#define QB64_MINGW
|
#define QB64_MINGW
|
||||||
#endif
|
#endif
|
||||||
#else
|
#elif defined(__APPLE__)
|
||||||
|
#define QB64_MACOSX
|
||||||
#define QB64_LINUX
|
#define QB64_LINUX
|
||||||
|
#define QB64_UNIX
|
||||||
#define QB64_GCC
|
#define QB64_GCC
|
||||||
#ifdef __APPLE__
|
#elif defined(__linux__)
|
||||||
#define QB64_MACOSX
|
#define QB64_LINUXONLY
|
||||||
#endif
|
#define QB64_LINUX
|
||||||
|
#define QB64_UNIX
|
||||||
|
#define QB64_GCC
|
||||||
|
#else
|
||||||
|
#error "Unknown system; refusing to build. Edit os.h if needed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if _WIN64 || __x86_64__ || __ppc64__ || QB64_MACOSX
|
#if _WIN64 || __x86_64__ || __ppc64__ || QB64_MACOSX
|
||||||
|
|
Loading…
Reference in a new issue