fix epicsTempFile in antelope+e_flex

This commit is contained in:
Michael Davidsaver
2020-04-30 18:15:10 -07:00
parent 799e72b1e3
commit 055223dbe4
4 changed files with 21 additions and 10 deletions

View File

@@ -29,7 +29,6 @@ e_flex_SRCS += nfa.c
e_flex_SRCS += sym.c
e_flex_SRCS += tblcmp.c
e_flex_SRCS += parse.c
e_flex_OBJS += epicsTempFile$(OBJ)
PROD_HOST += e_flex

View File

@@ -43,8 +43,14 @@ char copyright[] =
#endif /* not lint */
#include "epicsTempFile.h"
#undef epicsExportSharedSymbols
#ifdef EPICS_BUILD_DLL
# undef EPICS_BUILD_DLL
#endif
#ifdef EPICS_CALL_DLL
# undef EPICS_CALL_DLL
#endif
#include "epicsTempFile.c"
static char flex_version[] = "2.3";

View File

@@ -43,6 +43,12 @@
#include <stdlib.h>
#include <ctype.h>
#ifdef _WIN32
# include <io.h>
#else
# include <unistd.h>
#endif
#ifdef __GNUC__
#define NORETURN __attribute__((noreturn))
#else
@@ -824,12 +830,5 @@ extern int yylex ();
/* The Unix kernel calls used here */
extern int read (int, char*, int);
#ifndef _WIN32
extern int unlink (char*);
#endif
extern int write (int, char*, int);
#endif /* INC_flexdef_H */

View File

@@ -10,6 +10,13 @@
#include "defs.h"
/* Need this before the Com library can build it */
#ifdef EPICS_BUILD_DLL
# undef EPICS_BUILD_DLL
#endif
#ifdef EPICS_CALL_DLL
# undef EPICS_CALL_DLL
#endif
#include "epicsTempFile.c"
char dflag;