[*] import/export api macros were omega scuffed
This commit is contained in:
parent
bf905ea225
commit
d76e685c7a
51
bzlib.h
51
bzlib.h
@ -66,38 +66,39 @@ typedef
|
||||
bz_stream;
|
||||
|
||||
|
||||
#ifndef BZ_IMPORT
|
||||
#define BZ_EXPORT
|
||||
#if !defined(BZ_IMPORT)
|
||||
#define BZ_EXPORT
|
||||
#endif
|
||||
|
||||
#ifndef BZ_NO_STDIO
|
||||
/* Need a definitition for FILE */
|
||||
#include <stdio.h>
|
||||
#if !defined(BZ_NO_STDIO)
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <windows.h>
|
||||
# ifdef small
|
||||
/* windows.h define small to char */
|
||||
# undef small
|
||||
# endif
|
||||
# ifndef WINAPI
|
||||
# define WINAPI
|
||||
# endif
|
||||
# ifdef BZ_EXPORT
|
||||
# define BZ_API(func) WINAPI func
|
||||
# define BZ_EXTERN extern
|
||||
# else
|
||||
/* import windows dll dynamically */
|
||||
# define BZ_API(func) (WINAPI * func)
|
||||
# define BZ_EXTERN
|
||||
# endif
|
||||
#else
|
||||
# define BZ_API(func) func
|
||||
#define NOMINMAX
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef small
|
||||
#undef small
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef BZ_EXTERN
|
||||
#define BZ_EXTERN extern
|
||||
#if !defined(BZ_NOEXPORT)
|
||||
#ifdef BZ_EXPORT
|
||||
#define BZ_API(func) __declspec(dllexport) func
|
||||
#define BZ_EXTERN
|
||||
#else
|
||||
#define BZ_API(func) __declspec(dllimport) func
|
||||
#define BZ_EXTERN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(BZ_EXTERN)
|
||||
#define BZ_EXTERN extern
|
||||
#endif
|
||||
|
||||
#if !defined(BZ_API)
|
||||
#define BZ_API(func) func
|
||||
#endif
|
||||
|
||||
/*-- Core (low-level) library functions --*/
|
||||
|
Loading…
Reference in New Issue
Block a user