mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 15:35:21 +01:00 
			
		
		
		
	Compile bitop library as C++
This commit is contained in:
		
				
					committed by
					
						 Loïc Blot
						Loïc Blot
					
				
			
			
				
	
			
			
			
						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. */ | ||||
		Reference in New Issue
	
	Block a user