mirror of https://github.com/AxioDL/amuse.git
Non-windows linkage fixes
This commit is contained in:
parent
f69af0e9af
commit
797908a126
|
@ -83,5 +83,5 @@ if(TARGET boo)
|
||||||
|
|
||||||
# Multi-platform CLI tool
|
# Multi-platform CLI tool
|
||||||
add_executable(amuseplay WIN32 driver/main.cpp)
|
add_executable(amuseplay WIN32 driver/main.cpp)
|
||||||
target_link_libraries(amuseplay amuse boo ${BOO_SYS_LIBS} Shlwapi logvisor athena-core ${ZLIB_LIBRARIES})
|
target_link_libraries(amuseplay amuse boo ${BOO_SYS_LIBS} logvisor athena-core ${ZLIB_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -37,14 +37,12 @@ namespace amuse
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if _WIN32
|
||||||
static inline int CompareCaseInsensitive(const char* a, const char* b)
|
static inline int CompareCaseInsensitive(const char* a, const char* b)
|
||||||
{
|
{
|
||||||
#if _WIN32
|
|
||||||
return _stricmp(a, b);
|
return _stricmp(a, b);
|
||||||
#else
|
|
||||||
return strcasecmp(a, b);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline int CompareCaseInsensitive(const SystemChar* a, const SystemChar* b)
|
static inline int CompareCaseInsensitive(const SystemChar* a, const SystemChar* b)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue