Skip to content

Commit

Permalink
Attempt to fix windows10
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed May 25, 2018
1 parent 4461eb0 commit a662005
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions StepmaniaCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ else()
set(BSD FALSE)
endif()

macro(set_WIN10_FLAG)
if (WIN32 AND (CMAKE_SYSTEM_VERSION GREATER 10.0 OR CMAKE_SYSTEM_VERSION EQUAL 10.0))
add_definitions(-DWIN10)
endif()
endmacro()
set_WIN10_FLAG()

# Allow for finding our libraries in a standard location.
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}" "${SM_CMAKE_DIR}/Modules/")

Expand Down
5 changes: 5 additions & 0 deletions src/libtomcrypt/src/headers/tomcrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#include <ctype.h>
#include <limits.h>

// Defined by us in cmake
#ifdef WIN10
#include <windows.h>
#endif

/* use configuration data */
#include "tomcrypt_custom.h"

Expand Down

0 comments on commit a662005

Please sign in to comment.