fix: add support for int32_t on other compilers (#114)
This commit is contained in:
parent
ac8f5a044c
commit
9842a3f819
3
util.h
3
util.h
@ -2,6 +2,7 @@
|
||||
#define __UTIL_H__
|
||||
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
||||
bool ends_with(const std::string& str, const std::string& ending);
|
||||
bool starts_with(const std::string& str, const std::string& start);
|
||||
@ -34,4 +35,4 @@ void log_printf(SDLogLevel level, const char* file, int line, const char* format
|
||||
#define LOG_INFO(format, ...) log_printf(SDLogLevel::INFO, __FILE__, __LINE__, format, ##__VA_ARGS__)
|
||||
#define LOG_WARN(format, ...) log_printf(SDLogLevel::WARN, __FILE__, __LINE__, format, ##__VA_ARGS__)
|
||||
#define LOG_ERROR(format, ...) log_printf(SDLogLevel::ERROR, __FILE__, __LINE__, format, ##__VA_ARGS__)
|
||||
#endif // __UTIL_H__
|
||||
#endif // __UTIL_H__
|
||||
|
Loading…
Reference in New Issue
Block a user