Remove define breaking windows build

- -DLittleEndian was being defined before pulling in windows.h causing compiler errors
pull/12/head
Izaak Beekman 8 years ago
parent 8173b8c1ec
commit b3975878ef
No known key found for this signature in database
GPG Key ID: A93CE70D8021BD0F

@ -84,23 +84,25 @@ else()
message( FATAL_ERROR "Fortran name mangling suffix, \'${FortranCInterface_GLOBAL__SUFFIX}\', unknown to PSBLAS")
endif()
#----------------------------------------------
# Determine system endian-ness and pointer size
#----------------------------------------------
include(TestBigEndian)
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
if(IS_BIG_ENDIAN)
message( STATUS "System appears to be big endian.")
else()
message( STATUS "System appears to be little endian.")
add_definitions(-DLittleEndian)
endif()
include(CheckTypeSize)
CHECK_TYPE_SIZE("void *" VOID_P_SIZE LANGUAGE C)
if(${VOID_P_SIZE} EQUAL 8)
add_definitions(-DPtr64Bits)
if(NOT ${WIN32})
#----------------------------------------------
# Determine system endian-ness and pointer size
#----------------------------------------------
include(TestBigEndian)
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
if(IS_BIG_ENDIAN)
message( STATUS "System appears to be big endian.")
else()
message( STATUS "System appears to be little endian.")
add_definitions(-DLittleEndian)
endif()
include(CheckTypeSize)
CHECK_TYPE_SIZE("void *" VOID_P_SIZE LANGUAGE C)
if(${VOID_P_SIZE} EQUAL 8)
add_definitions(-DPtr64Bits)
endif()
message(STATUS "Have 64bit pointers")
endif()
message(STATUS "Have 64bit pointers")
#-----------------------------------------
# Check for some Fortran compiler features

@ -1,6 +1,8 @@
#if !(defined(_WIN32) || defined(WIN32))
#if (defined(_WIN32) || defined(WIN32))
#include <stdlib.h>
#include <windows.h>
#include <time.h>
#else
#include <sys/time.h>
#endif
#include <stdio.h>

Loading…
Cancel
Save