mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -04:00
Fix linux build
This commit is contained in:
parent
39cd47b2d3
commit
8b48a3381c
@ -61,7 +61,7 @@ I am assuming you used the installer from https://sourceforge.net/projects/mingw
|
||||
I am assuming you used the installer from http://www.mingw.org/
|
||||
1. Install MinGW. You need mingw32-base-bin and msys-base-bin packages.
|
||||
2. Run *msys.bat* in the *C:\MinGW\msys\1.0* folder.
|
||||
3. Compile with the same flags as **MinGW-w64**, but also add ```-DUNICODE```
|
||||
3. Compile with the same flags as under **Cross Compiling for windows**, but use *gcc* instead of *i586-mingw32msvc-gcc*
|
||||
|
||||
#### Linux
|
||||
|
||||
|
@ -22,9 +22,8 @@
|
||||
/* OpenBSD doesn't provide sys/ucontext.h */
|
||||
#elif defined CC_BUILD_LINUX || defined CC_BUILD_ANDROID
|
||||
/* Need to define this to get REG_ constants */
|
||||
#define __USE_GNU
|
||||
#define _GNU_SOURCE
|
||||
#include <sys/ucontext.h>
|
||||
#undef __USE_GNU
|
||||
#include <signal.h>
|
||||
#elif defined CC_BUILD_POSIX
|
||||
#include <signal.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user