diff options
| author | Juanma Barranquero | 2005-05-20 17:51:38 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-05-20 17:51:38 +0000 |
| commit | 09e8eb5baec4aa6a883e483e834e5a92258193d4 (patch) | |
| tree | 3daf2a6d0c086f8b2eeebc50e8000e1e5333c748 /src/image.c | |
| parent | 57d8ef63ee3d246f4726c7f0c28173b31faad58e (diff) | |
| download | emacs-09e8eb5baec4aa6a883e483e834e5a92258193d4.tar.gz emacs-09e8eb5baec4aa6a883e483e834e5a92258193d4.zip | |
(lookup_image, png_read_from_memory): Remove hacks (and misleading comments).
(DEF_IMGLIB_FN): Use C calling convention for image libraries.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/image.c b/src/image.c index f03adfdc48f..b61b07876d3 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -1631,11 +1631,6 @@ lookup_image (f, spec) | |||
| 1631 | Lisp_Object spec; | 1631 | Lisp_Object spec; |
| 1632 | { | 1632 | { |
| 1633 | struct image_cache *c = FRAME_X_IMAGE_CACHE (f); | 1633 | struct image_cache *c = FRAME_X_IMAGE_CACHE (f); |
| 1634 | #ifdef _MSC_VER | ||
| 1635 | /* Work around a problem with MinGW builds of graphics libraries | ||
| 1636 | not honoring calling conventions. */ | ||
| 1637 | static | ||
| 1638 | #endif | ||
| 1639 | struct image *img; | 1634 | struct image *img; |
| 1640 | int i; | 1635 | int i; |
| 1641 | unsigned hash; | 1636 | unsigned hash; |
| @@ -1815,7 +1810,7 @@ forall_images_in_image_cache (f, fn) | |||
| 1815 | #ifdef HAVE_NTGUI | 1810 | #ifdef HAVE_NTGUI |
| 1816 | 1811 | ||
| 1817 | /* Macro for defining functions that will be loaded from image DLLs. */ | 1812 | /* Macro for defining functions that will be loaded from image DLLs. */ |
| 1818 | #define DEF_IMGLIB_FN(func) FARPROC fn_##func | 1813 | #define DEF_IMGLIB_FN(func) int (FAR CDECL *fn_##func)() |
| 1819 | 1814 | ||
| 1820 | /* Macro for loading those image functions from the library. */ | 1815 | /* Macro for loading those image functions from the library. */ |
| 1821 | #define LOAD_IMGLIB_FN(lib,func) { \ | 1816 | #define LOAD_IMGLIB_FN(lib,func) { \ |
| @@ -5744,12 +5739,6 @@ struct png_memory_storage | |||
| 5744 | PNG_PTR is a pointer to the PNG control structure. Copy LENGTH | 5739 | PNG_PTR is a pointer to the PNG control structure. Copy LENGTH |
| 5745 | bytes from the input to DATA. */ | 5740 | bytes from the input to DATA. */ |
| 5746 | 5741 | ||
| 5747 | #ifdef _MSC_VER | ||
| 5748 | /* Work around a problem with MinGW builds of graphics libraries | ||
| 5749 | not honoring calling conventions. */ | ||
| 5750 | #pragma optimize("g", off) | ||
| 5751 | #endif | ||
| 5752 | |||
| 5753 | static void | 5742 | static void |
| 5754 | png_read_from_memory (png_ptr, data, length) | 5743 | png_read_from_memory (png_ptr, data, length) |
| 5755 | png_structp png_ptr; | 5744 | png_structp png_ptr; |
| @@ -5766,10 +5755,6 @@ png_read_from_memory (png_ptr, data, length) | |||
| 5766 | tbr->index = tbr->index + length; | 5755 | tbr->index = tbr->index + length; |
| 5767 | } | 5756 | } |
| 5768 | 5757 | ||
| 5769 | #ifdef _MSC_VER | ||
| 5770 | /* Restore normal optimization, as specified on the command line. */ | ||
| 5771 | #pragma optimize("", on) | ||
| 5772 | #endif | ||
| 5773 | 5758 | ||
| 5774 | /* Load PNG image IMG for use on frame F. Value is non-zero if | 5759 | /* Load PNG image IMG for use on frame F. Value is non-zero if |
| 5775 | successful. */ | 5760 | successful. */ |