Make nasal/iolib.h available to flightgear (for io.open)

This commit is contained in:
Rebecca N. Palmer 2015-03-13 18:19:58 +00:00
parent 37a963da92
commit a67a984d29
2 changed files with 8 additions and 3 deletions

View File

@ -4,6 +4,7 @@ include (SimGearComponent)
set(HEADERS set(HEADERS
naref.h naref.h
nasal.h nasal.h
iolib.h
) )
set(SOURCES set(SOURCES
@ -26,8 +27,7 @@ set(SOURCES
vector.c vector.c
code.h code.h
data.h data.h
iolib.h
parse.h parse.h
) )
simgear_component(nasal nasal "${SOURCES}" "${HEADERS}") simgear_component(nasal nasal "${SOURCES}" "${HEADERS}")

View File

@ -1,5 +1,8 @@
#ifndef _IOLIB_H #ifndef _IOLIB_H
#define _IOLIB_H #define _IOLIB_H
#ifdef __cplusplus
extern "C" {
#endif
#include "nasal.h" #include "nasal.h"
@ -33,5 +36,7 @@ extern struct naIOType naStdIOType;
// Defined in iolib.c, there is no "library" header to put this in // Defined in iolib.c, there is no "library" header to put this in
naRef naIOGhost(naContext c, FILE* f); naRef naIOGhost(naContext c, FILE* f);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // _IOLIB_H #endif // _IOLIB_H