From 519ae3ae18cfa1c74caaf610744aaffcb1dd22ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 31 Jan 2015 13:46:36 -0800 Subject: [PATCH] Added default dynamic lib extension macro. --- include/bx/os.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/bx/os.h b/include/bx/os.h index 90e4b35..939119f 100644 --- a/include/bx/os.h +++ b/include/bx/os.h @@ -48,6 +48,14 @@ # include // getcwd #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 { inline void sleep(uint32_t _ms)