list(APPEND EJDB_LLIBRARIES ${CMAKE_THREAD_LIBS_INIT})
endif()
-if (APPLE)
find_library(RT_LIB rt)
- if (NOT RT_LIB)
- message(FATAL_ERROR "Library 'librt' not FOUND")
- endif()
+if (RT_LIB)
list(APPEND EJDB_LLIBRARIES "${RT_LIB}")
+else()
+ message(WARNING "Library 'librt' not FOUND")
endif()
find_library(M_LIB m)
static const bool yes = true;
const char *ejdbversion() {
- return _TC_VERSION;
+ return tcversion;
}
const char* ejdberrmsg(int ecode) {
}
bool ejdbopen(EJDB *jb, const char *path, int mode) {
- assert(jb && path);
- assert(jb->metadb);
+ assert(jb && path && jb->metadb);
if (!JBLOCKMETHOD(jb, true)) return false;
if (JBISOPEN(jb)) {
_ejdbsetecode(jb, TCEINVALID, __FILE__, __LINE__, __func__);