mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
Fix debug builds on linux
This commit is contained in:
parent
c22eb8b2ba
commit
6c8b6387b4
3 changed files with 5 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -957,7 +957,7 @@ else ifeq ($(TARGET_RPI),1)
|
|||
LDFLAGS += -Llib/lua/linux -l:liblua53-arm.a
|
||||
endif
|
||||
else
|
||||
LDFLAGS += -Llib/lua/linux -l:liblua53.a
|
||||
LDFLAGS += -Llib/lua/linux -l:liblua53.a -ldl
|
||||
endif
|
||||
|
||||
# Network/Discord/Bass (ugh, needs cleanup)
|
||||
|
|
|
@ -42,8 +42,8 @@ static void _debuglog_print_log(char* logType, char* filename) {
|
|||
_debuglog_print_short_filename(filename);
|
||||
}
|
||||
|
||||
#define LOG_DEBUG(...) if (configDebugPrint) { ( _debuglog_print_log("DEBUG", __FILE__), printf(__VA_ARGS__), printf("\n") ); }
|
||||
#define LOG_INFO(...) if (configDebugInfo) { ( _debuglog_print_log("INFO", __FILE__), printf(__VA_ARGS__), printf("\n") ); }
|
||||
#define LOG_ERROR(...) if (configDebugError) { ( _debuglog_print_log("ERROR", __FILE__), printf(__VA_ARGS__), printf("\n") ); }
|
||||
#define LOG_DEBUG(...) (configDebugPrint ? ( _debuglog_print_log("DEBUG", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
|
||||
#define LOG_INFO(...) (configDebugInfo ? ( _debuglog_print_log("INFO", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
|
||||
#define LOG_ERROR(...) (configDebugError ? ( _debuglog_print_log("ERROR", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#define PATCH_VERSION_NUMBER 3
|
||||
|
||||
#define MAX_VERSION_LENGTH 10
|
||||
#define MAX_LOCAL_VERSION_LENGTH 11
|
||||
#define MAX_LOCAL_VERSION_LENGTH 12
|
||||
char* get_version(void);
|
||||
char* get_version_local(void);
|
||||
|
||||
|
|
Loading…
Reference in a new issue