mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 06:32:23 +01:00
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)
|
||||
|
||||
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. */
|
Loading…
Reference in New Issue
Block a user