gecko-dev/gfx
Nika Layzell 568787b95f Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium
By default, windows.h exposes a large number of problematic define statements
which are UpperCamelCase, such as a define from `CreateWindow` to
`CreateWindow{A,W}`.

As many of these names are generic (e.g. CreateFile, CreateWindow), they can
mess up Gecko code that may legitimately have its own methods with the same
names.

The header also defines some traditional SCREAMING_SNAKE_CASE defines which
can mess up our code by conflicting with local values.

This patch adds a simple code generator which generates wrappers for these
defines, and uses them to wrap the windows.h wrapper using the `stl_wrappers`
mechanism, allowing us to use windows.h in more places.

Differential Revision: https://phabricator.services.mozilla.com/D10932
2018-11-28 12:56:20 -05:00
..
2d Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-28 00:54:56 +00:00
angle Bug 1497439 - Revendor ANGLE with cherry-pick for large vert attrib divisors. 2018-10-09 18:27:09 -07:00
cairo Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
config Bug 1500017 - Use triple buffer with DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL SwapChain r=mattwoodrow 2018-11-05 18:58:37 +09:00
docs Bug 1496026 - Fix some trivial typos r=ahal 2018-10-03 13:39:07 +00:00
gl Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
graphite2 Bug 1497741 - Remove source exception in gfx/graphite2/src/moz.build r=froydnj 2018-10-10 14:57:13 +00:00
harfbuzz Bug 1490062 - Update HarfBuzz to version 1.9.0. r=jfkthame 2018-09-13 20:22:57 -04:00
ipc Bug 1507540 part 2. Use more notxpcom attributes in docshell/. r=smaug 2018-11-19 20:17:53 -05:00
layers Bug 1504065 - Support background-color animations on the compositor for nsIDOMWindowUtils::GetOMTAValue. r=birtles 2018-11-28 00:59:15 +00:00
ots
qcms Bug 1494222: Add source bytes to fix qcms_fuzzer coverage. r=agaynor 2018-10-07 21:21:34 +00:00
sfntly
skia Bug 1505426 - initialize SkMaskFilter flattenables. r=rhunt 2018-11-20 15:19:33 -05:00
src Bug 1507127 - Move the page-break-{before,after} properties to not use mako. r=heycam 2018-11-15 08:15:13 +00:00
tests Bug 1508822 - Guard against trying to create an oversized DrawTargetRecording with WebRender. r=mstange 2018-11-26 18:14:59 +00:00
thebes Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
vr Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
webrender_bindings Merge mozilla-central to mozilla-inbound. 2018-11-28 06:12:39 +02:00
wr Bug 1510379 - Update webrender to commit 586af96c22c8b05722534e98703bfb47f1d270a1 (WR PR #3338). r=kats 2018-11-27 19:28:45 +00:00
ycbcr Bug 1505819: Don't use yuv_row_win64.cpp on aarch64 clang-cl builds. r=jrmuizel 2018-11-08 14:04:11 -05:00
moz.build