]> granicus.if.org Git - pdns/commitdiff
remove windows code from parser
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 24 Oct 2013 20:02:53 +0000 (22:02 +0200)
committermind04 <mind04@monshouwer.org>
Thu, 24 Oct 2013 20:02:53 +0000 (22:02 +0200)
pdns/backends/bind/bindlexer.l
pdns/backends/bind/bindparser.yy

index 1ecb394ee1bd4123518307c9fc889b0147f83322..2f783eade967dc2cb365b1005de773259d0af10c 100644 (file)
@@ -7,22 +7,7 @@
 #define YY_NO_INPUT 1
 #define YYSTYPE char *
 
-#ifdef WIN32
-#include "bindparser.tab.hh"
-
-extern "C"
-{
-  int isatty( int );
-  int yywrap()
-  {
-    return 1;
-  }
-}
-
-
-#else
 #include "bindparser.h"
-#endif // WIN32
 
 int linenumber;
 #define MAX_INCLUDE_DEPTH 10
index 0fd148e5957a00777b73e49c6f1c4fc0c6e9e7aa..5e2ff5dfc8ca5812bda4ae954906ee4394635915 100644 (file)
@@ -16,11 +16,8 @@ extern int yydebug;
 
 #define YYSTYPE char *
 
-
-#ifndef WIN32
 extern "C" 
 {
-#endif // WIN32
        int yyparse(void);
        int yylex(void);
        void yyrestart(FILE *);
@@ -28,9 +25,7 @@ extern "C"
        {
                return 1;
        }
-#ifndef WIN32
 }
-#endif // WIN32
 
 
 extern int yydebug;