Skip to content

Commit

Permalink
fix: add support for int32_t on other compilers (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreijstal authored Dec 11, 2023
1 parent ac8f5a0 commit 9842a3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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__

0 comments on commit 9842a3f

Please sign in to comment.