aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.c
diff options
context:
space:
mode:
authorAndrew Innes2001-10-18 16:23:14 +0000
committerAndrew Innes2001-10-18 16:23:14 +0000
commit97f4db8c94f258ac20234402fd502facfbc87be6 (patch)
tree295682a35658790c6ce1ac7b11befc9246574a58 /src/fontset.c
parent3f482bc0e547e953eeeb7376e1d4ca8ce0d784b7 (diff)
downloademacs-97f4db8c94f258ac20234402fd502facfbc87be6.tar.gz
emacs-97f4db8c94f258ac20234402fd502facfbc87be6.zip
(fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
optimization. The fontp->encoding array was not being initialized correctly when compiled with optimizations by MSVC.
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 983222f4bb7..7e7364b0205 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -569,6 +569,10 @@ fontset_font_pattern (f, id, c)
569} 569}
570 570
571 571
572#if defined(WINDOWSNT) && defined (_MSC_VER)
573#pragma optimize("", off)
574#endif
575
572/* Load a font named FONTNAME to display character C on frame F. 576/* Load a font named FONTNAME to display character C on frame F.
573 Return a pointer to the struct font_info of the loaded font. If 577 Return a pointer to the struct font_info of the loaded font. If
574 loading fails, return NULL. If FACE is non-zero and a fontset is 578 loading fails, return NULL. If FACE is non-zero and a fontset is
@@ -694,6 +698,10 @@ fs_load_font (f, c, fontname, id, face)
694 return fontp; 698 return fontp;
695} 699}
696 700
701#if defined(WINDOWSNT) && defined (_MSC_VER)
702#pragma optimize("", on)
703#endif
704
697 705
698/* Cache data used by fontset_pattern_regexp. The car part is a 706/* Cache data used by fontset_pattern_regexp. The car part is a
699 pattern string containing at least one wild card, the cdr part is 707 pattern string containing at least one wild card, the cdr part is