changeset 40028:392c2fe9edd7

(fs_load_font) [WINDOWSNT && _MSC_VER]: Disable optimization. The fontp->encoding array was not being initialized correctly when compiled with optimizations by MSVC.
author Andrew Innes <andrewi@gnu.org>
date Thu, 18 Oct 2001 16:22:55 +0000
parents d081f5779c98
children 3f3bca32e246
files src/fontset.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Thu Oct 18 10:06:01 2001 +0000
+++ b/src/fontset.c	Thu Oct 18 16:22:55 2001 +0000
@@ -569,6 +569,10 @@
 }
 
 
+#if defined(WINDOWSNT) && defined (_MSC_VER)
+#pragma optimize("", off)
+#endif
+
 /* Load a font named FONTNAME to display character C on frame F.
    Return a pointer to the struct font_info of the loaded font.  If
    loading fails, return NULL.  If FACE is non-zero and a fontset is
@@ -694,6 +698,10 @@
   return fontp;
 }
 
+#if defined(WINDOWSNT) && defined (_MSC_VER)
+#pragma optimize("", on)
+#endif
+
 
 /* Cache data used by fontset_pattern_regexp.  The car part is a
    pattern string containing at least one wild card, the cdr part is