Compile bitop library as C++

This commit is contained in:
Jude Melton-Houghton 2022-08-16 11:27:11 -04:00 committed by Loïc Blot
parent 6f5a68b7f7
commit b89608c624
2 changed files with 5 additions and 1 deletions

@ -1,4 +1,4 @@
add_library(bitop STATIC bit.c)
add_library(bitop STATIC bit.cpp)
target_link_libraries(bitop)
include_directories(${LUA_INCLUDE_DIR})

@ -26,12 +26,16 @@
** [ MIT license: http://www.opensource.org/licenses/mit-license.php ]
*/
extern "C" {
#include "bit.h"
}
#define LUA_BITOP_VERSION "1.0.2"
#define LUA_LIB
extern "C" {
#include "lauxlib.h"
}
#ifdef _MSC_VER
/* MSVC is stuck in the last century and doesn't have C99's stdint.h. */