Explorar el Código

Added default dynamic lib extension macro.

Branimir Karadžić hace 11 años
padre
commit
519ae3ae18
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      include/bx/os.h

+ 8 - 0
include/bx/os.h

@@ -48,6 +48,14 @@
 #	include <unistd.h> // getcwd
 #	include <unistd.h> // getcwd
 #endif // BX_COMPILER_MSVC
 #endif // BX_COMPILER_MSVC
 
 
+#if BX_PLATFORM_OSX
+#	define BX_DL_EXT "dylib"
+#elif BX_PLATFORM_WINDOWS
+#	define BX_DL_EXT "dll"
+#else
+#	define BX_DL_EXT "so"
+#endif //
+
 namespace bx
 namespace bx
 {
 {
 	inline void sleep(uint32_t _ms)
 	inline void sleep(uint32_t _ms)