Added LIB*_EXTERNAL_DATA Macros necessary to make lib extern variables globally visible in Win32
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: lib.h,v 1.2 2001/03/27 20:08:09 bwelling Exp $ */
|
||||
/* $Id: lib.h,v 1.3 2001/11/19 03:08:34 mayer Exp $ */
|
||||
|
||||
#ifndef ISCCC_LIB_H
|
||||
#define ISCCC_LIB_H 1
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
extern isc_msgcat_t *isccc_msgcat;
|
||||
LIBISCCC_EXTERNAL_DATA extern isc_msgcat_t *isccc_msgcat;
|
||||
|
||||
void
|
||||
isccc_lib_initmsgcat(void);
|
||||
|
||||
@@ -15,10 +15,12 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: version.h,v 1.1 2001/10/16 23:21:01 gson Exp $ */
|
||||
/* $Id: version.h,v 1.2 2001/11/19 03:08:35 mayer Exp $ */
|
||||
|
||||
extern const char isccc_version[];
|
||||
#include <isc/platform.h>
|
||||
|
||||
extern const unsigned int isccc_libinterface;
|
||||
extern const unsigned int isccc_librevision;
|
||||
extern const unsigned int isccc_libage;
|
||||
LIBISCCC_EXTERNAL_DATA extern const char isccc_version[];
|
||||
|
||||
LIBISCCC_EXTERNAL_DATA extern const unsigned int isccc_libinterface;
|
||||
LIBISCCC_EXTERNAL_DATA extern const unsigned int isccc_librevision;
|
||||
LIBISCCC_EXTERNAL_DATA extern const unsigned int isccc_libage;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: lib.c,v 1.2 2001/03/27 20:07:58 bwelling Exp $ */
|
||||
/* $Id: lib.c,v 1.3 2001/11/19 03:08:33 mayer Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
*** Globals
|
||||
***/
|
||||
|
||||
isc_msgcat_t * isccc_msgcat = NULL;
|
||||
LIBISCCC_EXTERNAL_DATA isc_msgcat_t * isccc_msgcat = NULL;
|
||||
|
||||
|
||||
/***
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: version.c,v 1.3 2001/10/16 23:21:02 gson Exp $ */
|
||||
/* $Id: version.c,v 1.4 2001/11/19 03:08:36 mayer Exp $ */
|
||||
|
||||
#include <versions.h>
|
||||
|
||||
#include <isccc/version.h>
|
||||
|
||||
const char isccc_version[] = VERSION;
|
||||
LIBISCCC_EXTERNAL_DATA const char isccc_version[] = VERSION;
|
||||
|
||||
const unsigned int isccc_libinterface = LIBINTERFACE;
|
||||
const unsigned int isccc_librevision = LIBREVISION;
|
||||
const unsigned int isccc_libage = LIBAGE;
|
||||
LIBISCCC_EXTERNAL_DATA const unsigned int isccc_libinterface = LIBINTERFACE;
|
||||
LIBISCCC_EXTERNAL_DATA const unsigned int isccc_librevision = LIBREVISION;
|
||||
LIBISCCC_EXTERNAL_DATA const unsigned int isccc_libage = LIBAGE;
|
||||
|
||||
Reference in New Issue
Block a user