Added LIBRARY_EXT constant.

This commit is contained in:
Patrick 2024-07-27 11:14:44 +02:00
parent e82c697d2e
commit 8b55786e77
2 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,6 @@
#include "os.hpp" #include "os.hpp"
#include <filesystem> #include <filesystem>
#include "../detect.hpp"
#if MIJIN_TARGET_OS == MIJIN_OS_LINUX #if MIJIN_TARGET_OS == MIJIN_OS_LINUX
#include <dlfcn.h> #include <dlfcn.h>

View File

@ -20,6 +20,15 @@ namespace mijin
// public constants // 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 // public types
// //