ENH: Changed magic numbers to reserved. Added CMAKE_VERSION_MAJOR and CMAKE_VERSION_MINOR macros to allow commands to do conditional compilation across multiple versions of CMake.

This commit is contained in:
Brad King 2003-01-02 10:27:30 -05:00
parent 0a14f69755
commit ee459411ba
1 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,9 @@
#ifndef cmCPluginAPI_h
#define cmCPluginAPI_h
#define CMAKE_VERSION_MAJOR 1
#define CMAKE_VERSION_MINOR 5
#ifdef __cplusplus
extern "C" {
#endif
@ -184,8 +187,8 @@ Finally we define the key data structures and function prototypes
typedef void (*CM_DESTRUCTOR_FUNCTION)(void *info);
typedef struct {
unsigned char magic1;
unsigned char magic2;
unsigned long reserved1; /* Reserved for future use. DO NOT USE. */
unsigned long reserved2; /* Reserved for future use. DO NOT USE. */
cmCAPI *CAPI;
int m_Inherited;
CM_INITIAL_PASS_FUNCTION InitialPass;