projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restored somehow lost AMD Family 11h support.
[libfirm]
/
ir
/
libcore
/
lc_config_lexer.l
diff --git
a/ir/libcore/lc_config_lexer.l
b/ir/libcore/lc_config_lexer.l
index
1902e3e
..
d0ed399
100644
(file)
--- a/
ir/libcore/lc_config_lexer.l
+++ b/
ir/libcore/lc_config_lexer.l
@@
-26,11
+26,25
@@
#endif
#include <stdio.h>
#endif
#include <stdio.h>
+/* flex generated code wants a declaration of isatty... */
+#ifdef _WIN32
+#include <io.h>
+#else
+#include <unistd.h>
#include "lc_parser_t.h"
#include "lc_config_parser.h"
#include "lc_parser_t.h"
#include "lc_config_parser.h"
+#define YY_NO_UNISTD_H
+#define YY_NO_INPUT
+
+#ifdef __cplusplus
+extern "C" {
+#endif
static int _lc_opt_wrap(void);
static int _lc_opt_wrap(void);
+#ifdef __cplusplus
+}
+#endif
%}
%}
@@
-107,6
+121,5
@@
static int _lc_opt_wrap(void)
{
/* avoid warning */
(void) yyunput;
{
/* avoid warning */
(void) yyunput;
- (void) input;
return 1;
}
return 1;
}