From 664b1fa4a899f5e026201e6906edc48c76d2d0e1 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 21 Apr 1998 17:02:27 +0000 Subject: [PATCH] Prepairing for C++ integration. --- Aircraft/aircraft.h | 29 +- Astro/moon.h | 22 +- Astro/orbits.h | 21 +- Astro/planets.h | 19 +- Astro/sky.h | 17 +- Astro/stars.h | 20 +- Astro/sun.h | 17 +- Cockpit/cockpit.h | 19 +- Controls/controls.h | 17 +- Main/GLUTkey.h | 17 +- Main/GLUTmain.c | 1210 ------------------------------------------- Main/GLUTmain.cxx | 1162 +++++++++++++++++++++++++++++++++++++++++ Main/Makefile.am | 2 +- Main/Makefile.in | 26 +- Main/fg_getopt.h | 17 +- Main/fg_init.h | 19 +- Main/views.h | 19 +- Scenery/obj.h | 19 +- Scenery/scenery.h | 17 +- Scenery/texload.h | 10 + Scenery/tilecache.h | 17 +- Scenery/tilemgr.h | 19 +- Weather/weather.h | 18 +- 23 files changed, 1485 insertions(+), 1268 deletions(-) delete mode 100644 Main/GLUTmain.c create mode 100644 Main/GLUTmain.cxx diff --git a/Aircraft/aircraft.h b/Aircraft/aircraft.h index cbdc86b19..e39985ab2 100644 --- a/Aircraft/aircraft.h +++ b/Aircraft/aircraft.h @@ -27,6 +27,12 @@ #ifndef _AIRCRAFT_H #define _AIRCRAFT_H + +#ifdef __cplusplus +extern "C" { +#endif + + #include #include @@ -51,14 +57,22 @@ void fgAircraftInit( void ); void fgAircraftOutputCurrent(fgAIRCRAFT *a); +#ifdef __cplusplus +} +#endif + + #endif /* _AIRCRAFT_H */ /* $Log$ -/* Revision 1.10 1998/02/07 15:29:32 curt -/* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss -/* +/* Revision 1.11 1998/04/21 17:02:27 curt +/* Prepairing for C++ integration. /* + * Revision 1.10 1998/02/07 15:29:32 curt + * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss + * + * * Revision 1.9 1998/01/22 02:59:23 curt * Changed #ifdef FILE_H to #ifdef _FILE_H * @@ -71,10 +85,13 @@ void fgAircraftOutputCurrent(fgAIRCRAFT *a); /* $Log$ -/* Revision 1.10 1998/02/07 15:29:32 curt -/* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss -/* +/* Revision 1.11 1998/04/21 17:02:27 curt +/* Prepairing for C++ integration. /* + * Revision 1.10 1998/02/07 15:29:32 curt + * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss + * + * * Revision 1.9 1998/01/22 02:59:23 curt * Changed #ifdef FILE_H to #ifdef _FILE_H * diff --git a/Astro/moon.h b/Astro/moon.h index f43820ae1..ff7b21073 100644 --- a/Astro/moon.h +++ b/Astro/moon.h @@ -26,6 +26,11 @@ #define _MOON_H +#ifdef __cplusplus +extern "C" { +#endif + + #include #include