23 #ifndef CASADI_CASADI_OS_HPP
24 #define CASADI_CASADI_OS_HPP
26 #include <casadi/core/casadi_export.h>
40 #define _WIN32_WINNT 0x0502
58 #ifndef SHARED_LIBRARY_PREFIX
59 #define SHARED_LIBRARY_PREFIX CASADI_SHARED_LIBRARY_PREFIX
64 #ifndef SHARED_LIBRARY_SUFFIX
65 #define SHARED_LIBRARY_SUFFIX CASADI_SHARED_LIBRARY_SUFFIX
71 CASADI_EXPORT std::vector<std::string> get_search_paths();
75 CASADI_EXPORT
char pathsep();
78 CASADI_EXPORT std::string filesep();
84 typedef HINSTANCE handle_t;
86 typedef void* handle_t;
89 CASADI_EXPORT handle_t open_shared_library(
const std::string& lib,
90 const std::vector<std::string> &search_paths,
91 std::string &resultpath,
92 const std::string& caller,
bool global=
false);
94 CASADI_EXPORT handle_t open_shared_library(
const std::string& lib,
95 const std::vector<std::string> &search_paths,
96 const std::string& caller,
bool global=
false);
103 CASADI_EXPORT
int close_shared_library(handle_t handle);