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,6 +84,7 @@ else()
message( FATAL_ERROR "Fortran name mangling suffix, \'${FortranCInterface_GLOBAL__SUFFIX}\', unknown to PSBLAS") message( FATAL_ERROR "Fortran name mangling suffix, \'${FortranCInterface_GLOBAL__SUFFIX}\', unknown to PSBLAS")
endif() endif()
if(NOT ${WIN32})
#---------------------------------------------- #----------------------------------------------
# Determine system endian-ness and pointer size # Determine system endian-ness and pointer size
#---------------------------------------------- #----------------------------------------------
@ -101,6 +102,7 @@ if(${VOID_P_SIZE} EQUAL 8)
add_definitions(-DPtr64Bits) add_definitions(-DPtr64Bits)
endif() endif()
message(STATUS "Have 64bit pointers") message(STATUS "Have 64bit pointers")
endif()
#----------------------------------------- #-----------------------------------------
# Check for some Fortran compiler features # Check for some Fortran compiler features

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

Loading…
Cancel
Save