toolkit/library/StaticXULComponentsEnd/StaticXULComponentsEnd.cpp
author Masatoshi Kimura <VYV03354@nifty.ne.jp>
Sun, 11 Jan 2015 11:34:52 +0900
changeset 223144 3928ee1b0381453833c00fbe1e1b72a26143f13a
parent 156998 1eb6ceed2cdab03108bd5de27dfab737e5093822
child 376385 3fd81dad7c8b68c256f455542f72e880cfeb9c63
permissions -rw-r--r--
Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo

#include "mozilla/Module.h"

/* Ensure end_kPStaticModules is at the end of the .kPStaticModules section
 * on Windows. Somehow, placing the object last is not enough with PGO/LTCG. */
#ifdef _MSC_VER
/* Sections on Windows are in two parts, separated with $. When linking,
 * sections with the same first part are all grouped, and ordered
 * alphabetically with the second part as sort key. */
#  pragma section(".kPStaticModules$Z", read)
#  undef NSMODULE_SECTION
#  define NSMODULE_SECTION __declspec(allocate(".kPStaticModules$Z"), dllexport)
#endif
NSMODULE_DEFN(end_kPStaticModules) = nullptr;