Fix debug builds on linux

This commit is contained in:
MysterD 2023-03-26 14:53:01 -07:00
parent c22eb8b2ba
commit 6c8b6387b4
3 changed files with 5 additions and 5 deletions

View File

@ -957,7 +957,7 @@ else ifeq ($(TARGET_RPI),1)
LDFLAGS += -Llib/lua/linux -l:liblua53-arm.a LDFLAGS += -Llib/lua/linux -l:liblua53-arm.a
endif endif
else else
LDFLAGS += -Llib/lua/linux -l:liblua53.a LDFLAGS += -Llib/lua/linux -l:liblua53.a -ldl
endif endif
# Network/Discord/Bass (ugh, needs cleanup) # Network/Discord/Bass (ugh, needs cleanup)

View File

@ -42,8 +42,8 @@ static void _debuglog_print_log(char* logType, char* filename) {
_debuglog_print_short_filename(filename); _debuglog_print_short_filename(filename);
} }
#define LOG_DEBUG(...) if (configDebugPrint) { ( _debuglog_print_log("DEBUG", __FILE__), printf(__VA_ARGS__), printf("\n") ); } #define LOG_DEBUG(...) (configDebugPrint ? ( _debuglog_print_log("DEBUG", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
#define LOG_INFO(...) if (configDebugInfo) { ( _debuglog_print_log("INFO", __FILE__), printf(__VA_ARGS__), printf("\n") ); } #define LOG_INFO(...) (configDebugInfo ? ( _debuglog_print_log("INFO", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
#define LOG_ERROR(...) if (configDebugError) { ( _debuglog_print_log("ERROR", __FILE__), printf(__VA_ARGS__), printf("\n") ); } #define LOG_ERROR(...) (configDebugError ? ( _debuglog_print_log("ERROR", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
#endif #endif

View File

@ -7,7 +7,7 @@
#define PATCH_VERSION_NUMBER 3 #define PATCH_VERSION_NUMBER 3
#define MAX_VERSION_LENGTH 10 #define MAX_VERSION_LENGTH 10
#define MAX_LOCAL_VERSION_LENGTH 11 #define MAX_LOCAL_VERSION_LENGTH 12
char* get_version(void); char* get_version(void);
char* get_version_local(void); char* get_version_local(void);