set(HEADERS
naref.h
nasal.h
+ iolib.h
)
set(SOURCES
vector.c
code.h
data.h
- iolib.h
parse.h
)
-simgear_component(nasal nasal "${SOURCES}" "${HEADERS}")
\ No newline at end of file
+simgear_component(nasal nasal "${SOURCES}" "${HEADERS}")
#ifndef _IOLIB_H
#define _IOLIB_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#include "nasal.h"
// Defined in iolib.c, there is no "library" header to put this in
naRef naIOGhost(naContext c, FILE* f);
-
+#ifdef __cplusplus
+} // extern "C"
+#endif
#endif // _IOLIB_H