explicitly mark library functions as extern

Add WEBP_EXTERN(type) macro which should make Windows DLL builds simpler
by allowing the signature to be changed.

Change-Id: I0cfa45dff779985680b1a38ddff30973a0d26639
This commit is contained in:
James Zern
2011-07-12 19:43:15 -07:00
parent 19db59f80f
commit cd7c5292e9
4 changed files with 122 additions and 101 deletions

View File

@ -29,4 +29,10 @@ typedef long long int int64_t;
#define inline __forceinline
#endif /* _MSC_VER */
#ifndef WEBP_EXTERN
// This explicitly marks library functions and allows for changing the
// signature for e.g., Windows DLL builds.
#define WEBP_EXTERN(type) extern type
#endif /* WEBP_EXTERN */
#endif /* WEBP_WEBP_TYPES_H_ */