Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1081)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-private.hh

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright © 2007,2008,2009 Red Hat, Inc. 2 * Copyright © 2007,2008,2009 Red Hat, Inc.
3 * Copyright © 2011,2012 Google, Inc. 3 * Copyright © 2011,2012 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 #endif 87 #endif
88 88
89 #ifndef HB_INTERNAL 89 #ifndef HB_INTERNAL
90 # if !defined(__MINGW32__) && !defined(__CYGWIN__) 90 # if !defined(__MINGW32__) && !defined(__CYGWIN__)
91 # define HB_INTERNAL __attribute__((__visibility__("hidden"))) 91 # define HB_INTERNAL __attribute__((__visibility__("hidden")))
92 # else 92 # else
93 # define HB_INTERNAL 93 # define HB_INTERNAL
94 # endif 94 # endif
95 #endif 95 #endif
96 96
97 #if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER)
98 #define snprintf _snprintf
99 /* Windows CE only has _strdup, while rest of Windows has both. */
100 #define strdup _strdup
101 #endif
102
103 #ifdef _MSC_VER 97 #ifdef _MSC_VER
104 #undef inline 98 #undef inline
105 #define inline __inline 99 #define inline __inline
106 #endif 100 #endif
107 101
108 #ifdef __STRICT_ANSI__ 102 #ifdef __STRICT_ANSI__
109 #undef inline 103 #undef inline
110 #define inline __inline__ 104 #define inline __inline__
111 #endif 105 #endif
112 106
(...skipping 14 matching lines...) Expand all
127 # endif 121 # endif
128 # ifndef _WIN32_WINNT 122 # ifndef _WIN32_WINNT
129 # define _WIN32_WINNT 0x0600 123 # define _WIN32_WINNT 0x0600
130 # endif 124 # endif
131 # ifndef WIN32_LEAN_AND_MEAN 125 # ifndef WIN32_LEAN_AND_MEAN
132 # define WIN32_LEAN_AND_MEAN 1 126 # define WIN32_LEAN_AND_MEAN 1
133 # endif 127 # endif
134 # ifndef STRICT 128 # ifndef STRICT
135 # define STRICT 1 129 # define STRICT 1
136 # endif 130 # endif
137 #endif
138 131
139 #ifdef _WIN32_WCE 132 # if defined(_WIN32_WCE)
140 /* Some things not defined on Windows CE. */ 133 /* Some things not defined on Windows CE. */
141 #define MemoryBarrier() 134 # define getenv(Name) NULL
142 #define getenv(Name) NULL 135 # define setlocale(Category, Locale) "C"
143 #define setlocale(Category, Locale) "C"
144 static int errno = 0; /* Use something better? */ 136 static int errno = 0; /* Use something better? */
137 # elif defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI _FAMILY==WINAPI_FAMILY_PHONE_APP)
138 # define getenv(Name) NULL
139 # endif
140 # if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER)
141 # define snprintf _snprintf
142 /* Windows CE only has _strdup, while rest of Windows has both. */
143 # define strdup _strdup
144 # endif
145 #endif 145 #endif
146 146
147 #if HAVE_ATEXIT 147 #if HAVE_ATEXIT
148 /* atexit() is only safe to be called from shared libraries on certain 148 /* atexit() is only safe to be called from shared libraries on certain
149 * platforms. Whitelist. 149 * platforms. Whitelist.
150 * https://bugs.freedesktop.org/show_bug.cgi?id=82246 */ 150 * https://bugs.freedesktop.org/show_bug.cgi?id=82246 */
151 # if defined(__linux) && defined(__GLIBC_PREREQ) 151 # if defined(__linux) && defined(__GLIBC_PREREQ)
152 # if __GLIBC_PREREQ(2,3) 152 # if __GLIBC_PREREQ(2,3)
153 /* From atexit() manpage, it's safe with glibc 2.2.3 on Linux. */ 153 /* From atexit() manpage, it's safe with glibc 2.2.3 on Linux. */
154 # define HB_USE_ATEXIT 1 154 # define HB_USE_ATEXIT 1
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 hb_options (void) 931 hb_options (void)
932 { 932 {
933 if (unlikely (!_hb_options.i)) 933 if (unlikely (!_hb_options.i))
934 _hb_options_init (); 934 _hb_options_init ();
935 935
936 return _hb_options.opts; 936 return _hb_options.opts;
937 } 937 }
938 938
939 939
940 #endif /* HB_PRIVATE_HH */ 940 #endif /* HB_PRIVATE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-shape-normalize.cc ('k') | third_party/harfbuzz-ng/src/hb-shape.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698