gcc flags & misc

This commit is contained in:
david miller 2019-04-12 18:13:09 -04:00
parent 68ee192ad4
commit 803cad95f9
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
*/
#include "types.h"
#if BUILD_COMPILER!=COMPILER_VC && (BUILD_COMPILER!=COMPILER_CLANG || !WIN32)
#if BUILD_COMPILER!=COMPILER_VC && (BUILD_COMPILER!=COMPILER_CLANG || !defined(WIN32))
#include <stdio.h>
#include <errno.h>

View File

@ -6,7 +6,7 @@
#include "cfg/cfg.h"
#if BUILD_COMPILER==COMPILER_VC || (WIN32 && BUILD_COMPILER==COMPILER_CLANG)
#if BUILD_COMPILER==COMPILER_VC || BUILD_COMPILER==COMPILER_CLANG && defined(WIN32)
#include <io.h>
#include <direct.h>
#define access _access

View File

@ -518,7 +518,7 @@ typedef union
#if BUILD_COMPILER==COMPILER_VC || BUILD_COMPILER==COMPILER_CLANG && WIN32
#if BUILD_COMPILER==COMPILER_VC || BUILD_COMPILER==COMPILER_CLANG && defined(WIN32)
#pragma warning( disable : 4127 4996 /*4244*/)
#else
#define stricmp strcasecmp

View File

@ -305,7 +305,7 @@ elseif ((${BUILD_COMPILER} EQUAL ${COMPILER_GCC}) OR
endif() # X86 family
set(_CXX_FLAGS "${_CXX_FLAGS} -std=c++17 -fcxx-exceptions") ## xbyak needs exceptions
set(_CXX_FLAGS "${_CXX_FLAGS} -std=c++17") # -fcxx-exceptions") ## xbyak needs exceptions
endif()