forked from Mirrorlandia_minetest/minetest
Compile bitop library as C++
This commit is contained in:
parent
6f5a68b7f7
commit
b89608c624
@ -1,4 +1,4 @@
|
|||||||
add_library(bitop STATIC bit.c)
|
add_library(bitop STATIC bit.cpp)
|
||||||
target_link_libraries(bitop)
|
target_link_libraries(bitop)
|
||||||
|
|
||||||
include_directories(${LUA_INCLUDE_DIR})
|
include_directories(${LUA_INCLUDE_DIR})
|
||||||
|
@ -26,12 +26,16 @@
|
|||||||
** [ MIT license: http://www.opensource.org/licenses/mit-license.php ]
|
** [ MIT license: http://www.opensource.org/licenses/mit-license.php ]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
#include "bit.h"
|
#include "bit.h"
|
||||||
|
}
|
||||||
|
|
||||||
#define LUA_BITOP_VERSION "1.0.2"
|
#define LUA_BITOP_VERSION "1.0.2"
|
||||||
|
|
||||||
#define LUA_LIB
|
#define LUA_LIB
|
||||||
|
extern "C" {
|
||||||
#include "lauxlib.h"
|
#include "lauxlib.h"
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
/* MSVC is stuck in the last century and doesn't have C99's stdint.h. */
|
/* MSVC is stuck in the last century and doesn't have C99's stdint.h. */
|
Loading…
Reference in New Issue
Block a user