[pango/win32-font-language: 1/2] pangowin32.h: Don't define STRICT repeatedly




commit 26f07a575b5046abaa2cdbfa92b7716edfb00d5b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Dec 3 18:18:04 2020 +0800

    pangowin32.h: Don't define STRICT repeatedly
    
    When we include the C DirectWrite header(s), we implicitly say we want
    to define `STRICT`, so don't define this repeatedly to avoid a compiler
    warning.

 pango/pangowin32.h | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/pango/pangowin32.h b/pango/pangowin32.h
index 406c428b..5a773811 100644
--- a/pango/pangowin32.h
+++ b/pango/pangowin32.h
@@ -30,7 +30,10 @@
 
 G_BEGIN_DECLS
 
+#ifndef STRICT
 #define STRICT
+#endif
+
 #ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x0600    /* To get ClearType-related macros */
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]