toolkit/library/StaticXULComponentsEnd/StaticXULComponentsEnd.cpp
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Thu, 06 Nov 2014 06:02:19 -0800
changeset 214348 69df93626b108327b30b414a0d8eca2ec8ca46c4
parent 156998 1eb6ceed2cdab03108bd5de27dfab737e5093822
child 223144 3928ee1b0381453833c00fbe1e1b72a26143f13a
permissions -rw-r--r--
Bumping manifests a=b2g-bump

#include "mozilla/Module.h"
#include "mozilla/NullPtr.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;