Skip to content

Commit

Permalink
Fix Windows Build
Browse files Browse the repository at this point in the history
  • Loading branch information
diwlevin committed Apr 8, 2018
1 parent f2b660d commit c2354ea
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ else()
if(WIN32)
set (CMAKE_C_FLAGS /openmp ${CMAKE_C_FLAGS})
set (CMAKE_CXX_FLAGS /openmp ${CMAKE_CXX_FLAGS})
add_definitions(-DWIN32)
ELSE()
set (CMAKE_C_FLAGS ${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS})
set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS})
Expand Down
2 changes: 1 addition & 1 deletion ThirdParty/fcl
2 changes: 1 addition & 1 deletion ThirdParty/libccd
Submodule libccd updated 1 files
+2 −2 src/ccd/ccd_export.h
2 changes: 1 addition & 1 deletion ThirdParty/libigl
Submodule libigl updated 412 files
2 changes: 1 addition & 1 deletion src/Core/cpp/CoreOSSpecific.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <dirent.h>
#endif

#ifdef WIN32
#if defined(_WIN32) || defined(_WIN64) || defined (WIN32)

int Core::getDirectoryListing(std::vector<std::string> &list, const std::string &directoryName)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Core/include/CoreDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
#include <assert.h>
#include <iostream>

#ifdef WIN32
#if defined(_WIN32) || defined(_WIN64) || defined (WIN32)
#define MEMCPY(dst, size, src, num) (memcpy_s((dst), (size), (src), (num)))
#else
#define MEMCPY(dst, size, src, num) (memcpy((dst), (src), (num)))
#endif

#ifdef WIN32
#if defined(_WIN32) || defined(_WIN64) || defined (WIN32)
#define MEMSET
#else
#define MEMSET(dst, val, num) (memset((dst), (val), (num)))
Expand Down
2 changes: 1 addition & 1 deletion src/Core/include/CoreOSSpecific.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <string>
#include <vector>

#ifdef WIN32
#if defined(WIN32) || defined(_WIN32) || defined(_WIN64)
#define PATH_SEPARATOR '\\'
#else
#define PATH_SEPARATOR '/'
Expand Down
2 changes: 1 addition & 1 deletion src/Core/include/Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ namespace Gauss {
};

//Direct access into a tuple to run a designated function
#ifdef _WIN32
#if defined(_WIN32) || defined(_WIN64) || defined (WIN32)
//Slow version that doesn't break Visual Studio Compiler
template<unsigned int CheckIndex>
class ApplyTuple {
Expand Down

0 comments on commit c2354ea

Please sign in to comment.