| 1 | Author: Antero Mejr <[email protected]>
|
| 2 | Notes: Disabled function visibility hacks. Enabled non-static builds.
|
| 3 |
|
| 4 | diff --git a/deps/clog/CMakeLists.txt b/deps/clog/CMakeLists.txt
|
| 5 | index 6e50c41..db02e95 100644
|
| 6 | |
| 7 | |
| 8 | @@ -55,7 +55,7 @@ IF(CLOG_BUILD_TESTS)
|
| 9 | ENDIF()
|
| 10 |
|
| 11 | # ---[ clog library
|
| 12 | -ADD_LIBRARY(clog STATIC src/clog.c)
|
| 13 | +ADD_LIBRARY(clog src/clog.c)
|
| 14 | SET_TARGET_PROPERTIES(clog PROPERTIES
|
| 15 | C_STANDARD 99
|
| 16 | C_EXTENSIONS NO)
|
| 17 | diff --git a/deps/clog/include/clog.h b/deps/clog/include/clog.h
|
| 18 | index 4143761..aa9000f 100644
|
| 19 | |
| 20 | |
| 21 | @@ -11,16 +11,6 @@
|
| 22 | #define CLOG_INFO 4
|
| 23 | #define CLOG_DEBUG 5
|
| 24 |
|
| 25 | -#ifndef CLOG_VISIBILITY
|
| 26 | - #if defined(__ELF__)
|
| 27 | - #define CLOG_VISIBILITY __attribute__((__visibility__("internal")))
|
| 28 | - #elif defined(__MACH__)
|
| 29 | - #define CLOG_VISIBILITY __attribute__((__visibility__("hidden")))
|
| 30 | - #else
|
| 31 | - #define CLOG_VISIBILITY
|
| 32 | - #endif
|
| 33 | -#endif
|
| 34 | -
|
| 35 | #ifndef CLOG_ARGUMENTS_FORMAT
|
| 36 | #if defined(__GNUC__)
|
| 37 | #define CLOG_ARGUMENTS_FORMAT __attribute__((__format__(__printf__, 1, 2)))
|
| 38 | @@ -33,11 +23,11 @@
|
| 39 | extern "C" {
|
| 40 | #endif
|
| 41 |
|
| 42 | -CLOG_VISIBILITY void clog_vlog_debug(const char* module, const char* format, va_list args);
|
| 43 | -CLOG_VISIBILITY void clog_vlog_info(const char* module, const char* format, va_list args);
|
| 44 | -CLOG_VISIBILITY void clog_vlog_warning(const char* module, const char* format, va_list args);
|
| 45 | -CLOG_VISIBILITY void clog_vlog_error(const char* module, const char* format, va_list args);
|
| 46 | -CLOG_VISIBILITY void clog_vlog_fatal(const char* module, const char* format, va_list args);
|
| 47 | +void clog_vlog_debug(const char* module, const char* format, va_list args);
|
| 48 | +void clog_vlog_info(const char* module, const char* format, va_list args);
|
| 49 | +void clog_vlog_warning(const char* module, const char* format, va_list args);
|
| 50 | +void clog_vlog_error(const char* module, const char* format, va_list args);
|
| 51 | +void clog_vlog_fatal(const char* module, const char* format, va_list args);
|
| 52 |
|
| 53 | #define CLOG_DEFINE_LOG_DEBUG(log_debug_function_name, module, level) \
|
| 54 | CLOG_ARGUMENTS_FORMAT \
|