timegm ifdef in appropriate file

This commit is contained in:
jorenchik
2024-12-08 12:21:09 +02:00
parent 5df0bf864f
commit 920e74c8d6
2 changed files with 5 additions and 5 deletions

View File

@@ -10,11 +10,6 @@
#include "config.h" #include "config.h"
#include "result.h" #include "result.h"
// Uz Windows sistēmās timegm funkcijai ir atšķirīgs nosaukums.
#ifdef _WIN32
#define timegm _mkgmtime
#endif
std::vector<Token> tokens; std::vector<Token> tokens;
std::vector<char> buffer; std::vector<char> buffer;
int32_t row; int32_t row;

View File

@@ -18,6 +18,11 @@
#include "parser.h" #include "parser.h"
#include "stringUtils.h" #include "stringUtils.h"
// Uz Windows sistēmās timegm funkcijai ir atšķirīgs nosaukums.
#ifdef _WIN32
#define timegm _mkgmtime
#endif
typedef std::map<TokenType, std::vector<TokenType>> TokenTransitions; typedef std::map<TokenType, std::vector<TokenType>> TokenTransitions;
TokenTransitions *transitions = nullptr; TokenTransitions *transitions = nullptr;