Minor fixes needed for building on windows.

This commit is contained in:
Jean-Luc Duprat
2012-08-30 10:56:13 -07:00
parent 11db466a88
commit e0490d0df5
2 changed files with 4 additions and 3 deletions

View File

@@ -81,6 +81,7 @@
// Some ms header decided to define setjmp as _setjmp, undo this for this file. // Some ms header decided to define setjmp as _setjmp, undo this for this file.
#ifdef _MSC_VER #ifdef _MSC_VER
#undef setjmp #undef setjmp
#define snprintf _snprintf
#endif #endif
#include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachine.h"

6
lex.ll
View File

@@ -600,11 +600,11 @@ lParseInteger(bool dotdotdot) {
else { else {
// No u or l suffix // No u or l suffix
// First, see if we can fit this into a 32-bit integer... // First, see if we can fit this into a 32-bit integer...
if (yylval.intVal <= 0x7fffffffLLU) if (yylval.intVal <= 0x7fffffffULL)
return TOKEN_INT32_CONSTANT; return TOKEN_INT32_CONSTANT;
else if (yylval.intVal <= 0xffffffffLLU) else if (yylval.intVal <= 0xffffffffULL)
return TOKEN_UINT32_CONSTANT; return TOKEN_UINT32_CONSTANT;
else if (yylval.intVal <= 0x7fffffffffffffffLLU) else if (yylval.intVal <= 0x7fffffffffffffffULL)
return TOKEN_INT64_CONSTANT; return TOKEN_INT64_CONSTANT;
else else
return TOKEN_UINT64_CONSTANT; return TOKEN_UINT64_CONSTANT;