ERR: Removed C++-style comments, used C-style instead.
This commit is contained in:
parent
d9326ed78d
commit
994e300914
@ -14,16 +14,19 @@
|
|||||||
PURPOSE. See the above copyright notices for more information.
|
PURPOSE. See the above copyright notices for more information.
|
||||||
|
|
||||||
=========================================================================*/
|
=========================================================================*/
|
||||||
// This file is actually 4 different implementations.
|
|
||||||
// 1. HP machines which uses shl_load
|
|
||||||
// 2. Apple OSX which uses NSLinkModule
|
|
||||||
// 3. Windows which uses LoadLibrary
|
|
||||||
// 4. Most unix systems which use dlopen (default )
|
|
||||||
// Each part of the ifdef contains a complete implementation for
|
|
||||||
// the static methods of cmDynamicLoader.
|
|
||||||
|
|
||||||
// Ugly stuff for library handles
|
/*
|
||||||
// They are different on several different OS's
|
* This file is actually 4 different implementations.
|
||||||
|
* 1. HP machines which uses shl_load
|
||||||
|
* 2. Apple OSX which uses NSLinkModule
|
||||||
|
* 3. Windows which uses LoadLibrary
|
||||||
|
* 4. Most unix systems which use dlopen (default )
|
||||||
|
* Each part of the ifdef contains a complete implementation for
|
||||||
|
* the static methods of cmDynamicLoader.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Ugly stuff for library handles. They are different on several
|
||||||
|
different OS's */
|
||||||
#if defined(__hpux)
|
#if defined(__hpux)
|
||||||
# include <dl.h>
|
# include <dl.h>
|
||||||
typedef shl_t cmLibHandle;
|
typedef shl_t cmLibHandle;
|
||||||
@ -36,8 +39,8 @@
|
|||||||
|
|
||||||
typedef void (*cmDynamicLoaderFunction)();
|
typedef void (*cmDynamicLoaderFunction)();
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
// 1. Implementation for HPUX machines
|
/* 1. Implementation for HPUX machines */
|
||||||
#ifdef __hpux
|
#ifdef __hpux
|
||||||
#define CMDYNAMICLOADER_DEFINED 1
|
#define CMDYNAMICLOADER_DEFINED 1
|
||||||
#include <dl.h>
|
#include <dl.h>
|
||||||
@ -54,8 +57,8 @@ cmDynamicLoaderFunction cmDynamicLoaderGetSymbolAddress(cmLibHandle lib,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
// 2. Implementation for Darwin (including OSX) Machines
|
/* 2. Implementation for Darwin (including OSX) Machines */
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#define CMDYNAMICLOADER_DEFINED
|
#define CMDYNAMICLOADER_DEFINED
|
||||||
@ -78,8 +81,8 @@ cmDynamicLoaderFunction cmDynamicLoaderGetSymbolAddress(cmLibHandle lib,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
// 3. Implementation for Windows win32 code
|
/* 3. Implementation for Windows win32 code */
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define CMDYNAMICLOADER_DEFINED 1
|
#define CMDYNAMICLOADER_DEFINED 1
|
||||||
@ -99,12 +102,12 @@ cmDynamicLoaderFunction cmDynamicLoaderGetSymbolAddress(cmLibHandle lib,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
// 4. Implementation for default UNIX machines.
|
/* 4. Implementation for default UNIX machines.
|
||||||
// if nothing has been defined then use this
|
if nothing has been defined then use this */
|
||||||
#ifndef CMDYNAMICLOADER_DEFINED
|
#ifndef CMDYNAMICLOADER_DEFINED
|
||||||
#define CMDYNAMICLOADER_DEFINED
|
#define CMDYNAMICLOADER_DEFINED
|
||||||
// Setup for most unix machines
|
/* Setup for most unix machines */
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
cmDynamicLoaderFunction cmDynamicLoaderGetSymbolAddress(cmLibHandle lib,
|
cmDynamicLoaderFunction cmDynamicLoaderGetSymbolAddress(cmLibHandle lib,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user