Skip to content

Commit 4f6ab02

Browse files
authored
Force C89 on vxworks
1 parent 8e039b4 commit 4f6ab02

1 file changed

Lines changed: 7 additions & 21 deletions

File tree

luaApp/src/core/luaconf.h

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,6 @@
1919
*/
2020

2121

22-
/*
23-
** EPICS CONFIGURATION
24-
*/
25-
26-
#if EPICS_VERSION == 3
27-
#if EPICS_REVISION == 15
28-
29-
#if EPICS_MODIFICATION >= 5
30-
#define EPICS_COMPAT_IOCSH
31-
#endif
32-
33-
#elif EPICS_REVISION > 15
34-
#define EPICS_COMPAT_IOCSH
35-
#endif
36-
37-
#elif EPICS_VERSION > 3
38-
#define EPICS_COMPAT_IOCSH
39-
#endif
40-
41-
42-
4322
/*
4423
** {====================================================================
4524
** System Configuration: macros to adapt (if needed) Lua to some
@@ -72,6 +51,10 @@
7251
#define LUA_USE_WINDOWS /* enable goodies for regular Windows */
7352
#endif
7453

54+
#if defined(__vxworks) || defined(vxWorks)
55+
#define LUA_USE_VXWORKS
56+
#endif
57+
7558

7659
#if defined(LUA_USE_WINDOWS)
7760
#define LUA_DL_DLL /* enable support for DLL */
@@ -92,6 +75,9 @@
9275
#define LUA_USE_READLINE /* needs an extra library: -lreadline */
9376
#endif
9477

78+
#if defined(LUA_USE_VXWORKS)
79+
#define LUA_USE_C89
80+
#endif
9581

9682
/*
9783
@@ LUA_C89_NUMBERS ensures that Lua uses the largest types available for

0 commit comments

Comments
 (0)