mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00

Merge .CRT section into .rdata when linking to mingw lib. This silences the warnings about uninitialized constructors. svn path=/branches/cmake-bringup/; revision=49799
12 lines
334 B
C
12 lines
334 B
C
#include <stdio.h>
|
|
#include <internal.h>
|
|
#include <sect_attribs.h>
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma comment(linker, "/merge:.CRT=.rdata")
|
|
#endif
|
|
|
|
_CRTALLOC(".CRT$XIA") _PVFV __xi_a[] = { NULL };
|
|
_CRTALLOC(".CRT$XIZ") _PVFV __xi_z[] = { NULL };
|
|
_CRTALLOC(".CRT$XCA") _PVFV __xc_a[] = { NULL };
|
|
_CRTALLOC(".CRT$XCZ") _PVFV __xc_z[] = { NULL };
|