gecko-dev/config
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
..
external Bug 1493400 - Create build files for dav1d. r=firefox-build-system-reviewers,chmanchester 2018-11-24 01:53:31 +00:00
faster Bug 1459004: Generate built_in_addons.json from moz.build definitions. r=mshal 2018-06-06 16:43:00 -07:00
makefiles Bug 1474028 - Add a way to exclude libraries from the default build. r=ted 2018-08-10 12:07:29 -07:00
Moz
mozunit Bug 1475999 - Use the classic output style with pytest; r=ted 2018-07-17 12:01:38 +01:00
tests Bug 1138579 - Support multiple Files patterns in moz.build r=gps 2018-09-20 01:58:21 +00:00
AB_rCD.mk Bug 1439742 - Pre: Lift AB_rCD to ambient Make environment. r=ted.mielczarek 2018-02-20 12:28:21 -08:00
autoconf-js.mk.in
autoconf.mk.in
baseconfig.mk Bug 445128 - Stop putting the version number in the target directory for make install. r=nalexander 2017-12-31 17:18:52 +09:00
check_js_msg_encoding.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
check_js_opcode.py Bug 1506380 - Rename opcode.py to avoid conflict with builtin Python module. r=arai 2018-11-12 03:55:30 +00:00
check_macroassembler_style.py bug 1463425 - autopep8 on config/ r=gps 2018-05-22 00:01:01 +02:00
check_source_count.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
check_spidermonkey_style.py Bug 1508063 - Part 5: Move non-auto-generated part of BinASTParser into BinASTParserPerTokenizer. r=Yoric 2018-11-29 01:03:46 +09:00
check_vanilla_allocations.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
config.mk Bug 1414287 - Use a 64-bits clang-cl for 32-bits static analysis builds r=dmajor 2018-10-10 17:53:06 +00:00
createprecomplete.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
emptyvars-js.mk.in
emptyvars.mk.in
find_OOM_errors.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
gcc_hidden.h
gcc-stl-wrapper.template.h Bug 1423512 - Remove infallible allocator exception for xpcom glue code. r=erahm 2017-12-06 09:56:02 +09:00
install.bat
make-stl-wrappers.py Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
make-system-wrappers.py Bug 1507032 - Work around bug in wayland (< 1.12) headers. r=froydnj 2018-11-14 22:48:26 +00:00
make-windows-h-wrapper.py Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
Makefile.in Bug 1407432 - Move system wrapper generation to moz.build; r=froydnj 2017-11-08 19:58:56 -05:00
milestone.txt Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-10-22 08:50:03 -07:00
moz.build Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
MozZipFile.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
msvc-stl-wrapper.template.h Bug 1478014 - Silence -Wgnu-include-next in msvc-stl-wrapper.template.h. r=froydnj 2018-07-25 08:07:56 -04:00
nsinstall.c
nsinstall.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
pathsub.c Bug 1422852 - remove D_INO setting from configure; r=chmanchester 2017-12-04 08:18:00 -05:00
pathsub.h
printconfigsetting.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
printprereleasesuffix.py bug 1463425 - autopep8 on config/ r=gps 2018-05-22 00:01:01 +02:00
pythonpath.py bug 1463425 - autopep8 on config/ r=gps 2018-05-22 00:01:01 +02:00
rebuild_check.py bug 1463425 - Fix flake8/pep8 issue by hand in config/ r=gps 2018-05-22 06:22:46 -07:00
recurse.mk Bug 1474028 - Add a way to exclude libraries from the default build. r=ted 2018-08-10 12:07:29 -07:00
rules.mk Bug 1505859 - Allow rusttests to run when requested without --enable-rust-tests. r=firefox-build-system-reviewers,ted 2018-11-10 14:59:39 +00:00
run_spidermonkey_checks.py bug 1463425 - autopep8 on config/ r=gps 2018-05-22 00:01:01 +02:00
run-and-prefix.py Bug 1455120 - Prefix output from automation tiers; r=mshal 2018-04-18 14:30:05 -07:00
static-checking-config.mk Bug 1403346 - Implement clang-plugin cxxflags in moz.build. r=glandium 2017-10-25 15:12:10 -07:00
stl-headers.mozbuild Backed out 6 changesets (bug 1407432) on (wild) suspicion of causing failures in browser_sanitize-timespans.js, somehow 2017-11-09 22:07:46 -08:00
system_header_util.py Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
system-headers.mozbuild Bug 1507032 - Work around bug in wayland (< 1.12) headers. r=froydnj 2018-11-14 22:48:26 +00:00
version_win.pl Bug 1496179 - Make mozglue.dll a private SxS assembly. r=aklotz,froydnj 2018-10-10 22:57:53 +09:00
version.mk bug 1459597 - fix Original Filename display in Windows file version info. r=chmanchester 2018-05-11 11:56:12 -04:00
windows-h-constant.decls.h Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
windows-h-unicode.decls.h Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
windows-h-wrapper.template.h Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00