Added LIBRARY_EXT constant.
This commit is contained in:
parent
e82c697d2e
commit
8b55786e77
@ -2,7 +2,6 @@
|
||||
#include "os.hpp"
|
||||
|
||||
#include <filesystem>
|
||||
#include "../detect.hpp"
|
||||
|
||||
#if MIJIN_TARGET_OS == MIJIN_OS_LINUX
|
||||
#include <dlfcn.h>
|
||||
|
@ -20,6 +20,15 @@ namespace mijin
|
||||
// public constants
|
||||
//
|
||||
|
||||
#if MIJIN_TARGET_OS == MIJIN_OS_LINUX
|
||||
inline const std::string_view LIBRARY_EXT = "so";
|
||||
#elif MIJIN_TARGET_OS == MIJIN_OS_WINDOWS
|
||||
inline const std::string_view LIBRARY_EXT = "dll";
|
||||
#else
|
||||
[[deprecated("OS not supported.")]]
|
||||
inline const int LIBRARY_EXT = 0;
|
||||
#endif
|
||||
|
||||
//
|
||||
// public types
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user