Skip to content

Commit

Permalink
cmake: Use SEXP_64BIT on Win64
Browse files Browse the repository at this point in the history
Do not override SEXP_64BIT on Win64 as now we have custom-long-long for
it.
  • Loading branch information
okuoku committed Jun 20, 2018
1 parent f9bd4f9 commit 432b763
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
11 changes: 0 additions & 11 deletions CMakeLists.txt
Expand Up @@ -32,17 +32,6 @@ else()
add_definitions(-DSEXP_USE_DL=0)
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
if(MSVC)
# On MSVC, SEXP_64_BIT is not supported for now (#438)
add_definitions(-DSEXP_64_BIT=0)
else()
add_definitions(-DSEXP_64_BIT=1)
endif()
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
add_definitions(-DSEXP_64_BIT=0)
endif()

if(HAVE_STDINT_H)
add_definitions(-DSEXP_USE_INTTYPES=1)
endif()
Expand Down
4 changes: 0 additions & 4 deletions include/chibi/sexp.h
Expand Up @@ -209,10 +209,6 @@ enum sexp_types {
#endif

#ifdef _WIN32
#if defined(_MSC_VER) && SEXP_64_BIT
/* On SEXP_64_BIT, 128bits arithmetic is mandatory */
#error Unsupported configuration
#endif
#if SEXP_64_BIT
typedef unsigned int sexp_tag_t;
typedef unsigned long long sexp_uint_t;
Expand Down

0 comments on commit 432b763

Please sign in to comment.