general: Move inclusion of checkPandaVersion.h to dtoolbase

This includes it everywhere, meaning developers no longer must
remember to include it in each metalib init file.
This commit is contained in:
Sam Edwards 2018-05-24 15:01:35 -06:00
parent 35ab16d38f
commit 0ce9dc98b1
17 changed files with 7 additions and 96 deletions

View File

@ -19,6 +19,13 @@
#ifdef __cplusplus
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load any DLL will fail if they inadvertently link with the wrong version of
// dtool, which, transitively, means all DLLs must be from the same
// (ABI-compatible) version of Panda.
#include "checkPandaVersion.h"
#ifdef USE_TAU
// Tau provides this destructive version of stdbool.h that we must mask.
#define __PDT_STDBOOL_H_

View File

@ -14,12 +14,6 @@
#include "config_pstatclient.h"
#endif
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpanda.so.dll will fail if they inadvertently link with the wrong
// version of libdtool.so.dll.
#include "checkPandaVersion.h"
#if !defined(CPPPARSER) && !defined(BUILDING_LIBPANDA)
#error Buildsystem error: BUILDING_LIBPANDA not defined
#endif

View File

@ -7,12 +7,6 @@
#include "pandabullet.h"
#include "config_bullet.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandabullet.so.dll will fail if they inadvertently link with the
// wrong version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -9,12 +9,6 @@
#include "config_dxgsg9.h"
#include "wdxGraphicsPipe9.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandadx9.dll will fail if they inadvertently link with the wrong
// version of libdtool.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -9,12 +9,6 @@
#include "config_egg.h"
#include "config_egg2pg.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandaegg.so.dll will fail if they inadvertently link with the wrong
// version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -8,12 +8,6 @@
#include "config_egg.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandaegg.so.dll will fail if they inadvertently link with the wrong
// version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -3,9 +3,3 @@
* @author drose
* @date 2000-05-15
*/
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandaexpress.so.dll will fail if they inadvertently link with the
// wrong version of libdtool.so.dll.
#include "checkPandaVersion.h"

View File

@ -8,12 +8,6 @@
#include "config_distort.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandafx.so.dll will fail if they inadvertently link with the wrong
// version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -30,12 +30,6 @@
#error One of HAVE_WGL, HAVE_COCOA, HAVE_CARBON or HAVE_GLX must be defined when compiling pandagl!
#endif
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandagl.so.dll will fail if they inadvertently link with the wrong
// version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -17,12 +17,6 @@
#include "eglGraphicsPipe.h"
#endif
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandagles.so.dll will fail if they inadvertently link with the
// wrong version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -12,12 +12,6 @@
#include "config_egldisplay.h"
#include "eglGraphicsPipe.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandagles2.so.dll will fail if they inadvertently link with the
// wrong version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -7,12 +7,6 @@
#include "pandaode.h"
#include "config_ode.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandaode.so.dll will fail if they inadvertently link with the wrong
// version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -8,12 +8,6 @@
#include "config_physics.h"
#include "config_particlesystem.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandaphysics.so.dll will fail if they inadvertently link with the
// wrong version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -7,12 +7,6 @@
#include "pandaphysx.h"
#include "config_physx.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libpandaphysx.so.dll will fail if they inadvertently link with the
// wrong version of libdtool.so.dll.
#include "checkPandaVersion.h"
/**
* Initializes the library. This must be called at least once before any of
* the functions or classes in this library can be used. Normally it will be

View File

@ -21,12 +21,6 @@
#include "bamCache.h"
#include "virtualFileSystem.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to run
// pview will fail if it inadvertently links with the wrong version of
// libdtool.so.dll.
#include "checkPandaVersion.h"
int main(int argc, char **argv) {
PandaFramework framework;
framework.open_framework(argc, argv);

View File

@ -16,12 +16,6 @@
#include "dconfig.h"
#include "windowFramework.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to
// load libframework.so.dll will fail if they inadvertently link with the
// wrong version of libdtool.so.dll.
#include "checkPandaVersion.h"
#if !defined(CPPPARSER) && !defined(BUILDING_FRAMEWORK)
#error Buildsystem error: BUILDING_FRAMEWORK not defined
#endif

View File

@ -29,12 +29,6 @@
#include "asyncTask.h"
#include "boundingSphere.h"
// By including checkPandaVersion.h, we guarantee that runtime attempts to run
// pview will fail if it inadvertently links with the wrong version of
// libdtool.so.dll.
#include "checkPandaVersion.h"
PandaFramework framework;
ConfigVariableBool pview_test_hack