Use _WIN32 to detect if building for Windows.
This commit is contained in:
@@ -130,7 +130,6 @@ libraries {
|
|||||||
} else if (targetPlatform.operatingSystem.windows) {
|
} else if (targetPlatform.operatingSystem.windows) {
|
||||||
cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include"
|
cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include"
|
||||||
cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include/win32"
|
cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include/win32"
|
||||||
cppCompiler.define("WIN32")
|
|
||||||
linker.args "Shlwapi.lib", "Advapi32.lib"
|
linker.args "Shlwapi.lib", "Advapi32.lib"
|
||||||
} else if (targetPlatform.operatingSystem.freeBSD) {
|
} else if (targetPlatform.operatingSystem.freeBSD) {
|
||||||
cppCompiler.args '-I', "${org.gradle.internal.jvm.Jvm.current().javaHome}/include"
|
cppCompiler.args '-I', "${org.gradle.internal.jvm.Jvm.current().javaHome}/include"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
/*
|
/*
|
||||||
* Curses functions
|
* Curses functions
|
||||||
*/
|
*/
|
||||||
#ifndef WIN32
|
#ifndef _WIN32
|
||||||
|
|
||||||
#include "native.h"
|
#include "native.h"
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
/*
|
/*
|
||||||
* POSIX platform functions.
|
* POSIX platform functions.
|
||||||
*/
|
*/
|
||||||
#ifndef WIN32
|
#ifndef _WIN32
|
||||||
|
|
||||||
#include "native.h"
|
#include "native.h"
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
#include "native.h"
|
#include "native.h"
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
/*
|
/*
|
||||||
* POSIX platform functions.
|
* POSIX platform functions.
|
||||||
*/
|
*/
|
||||||
#ifndef WIN32
|
#ifndef _WIN32
|
||||||
|
|
||||||
#include "native.h"
|
#include "native.h"
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user