mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Compile bitop library as C++
This commit is contained in:
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)
|
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…
Add table
Add a link
Reference in a new issue