gd-libgd / src / gd.h

Diff from to

File src/gd.h

 	dllimport when importing from it, nothing when
 	not on Silly Silly Windows (tm Aardman Productions). */
+/* 2.0.20: for headers */
 #ifdef BGDWIN32
 #define BGD_EXPORT __declspec(dllexport)
 #endif /* WIN32 */
 #endif /* BGDWIN32 */
+/* 2.0.20: for actual storage of exported data, functions don't need this,
+  currently needed only for font pointers */
+#ifdef BGDWIN32
+#define BGD_EXPORT_DATA_IMPL __declspec(dllexport)
+#ifdef WIN32
+#define BGD_EXPORT_DATA_IMPL __declspec(dllimport)
+/* 2.0.20: should be nothing at all */
+#endif /* WIN32 */
+#endif /* BGDWIN32 */
 #ifdef __cplusplus
 extern "C"
 /* Optional: clean up after application is done using fonts in 
  BGD_EXPORT   gdImageStringFT(). */
  BGD_EXPORT void gdFontCacheShutdown (void);
+/* 2.0.20: for backwards compatibility. A few applications did start calling
+ this function when it first appeared although it was never documented. 
+ Simply invokes gdFontCacheShutdown. */
+ BGD_EXPORT void gdFreeFontCache (void);
 /* Calls gdImageStringFT. Provided for backwards compatibility only. */
   BGD_EXPORT char *gdImageStringTTF (gdImage * im, int *brect, int fg, char *fontlist,