fix: add support for int32_t on other compilers (#114)

This commit is contained in:
Kreijstal 2023-12-11 16:32:39 +01:00 committed by GitHub
parent ac8f5a044c
commit 9842a3f819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
util.h
View File

@ -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__