mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
4819ff9647
Root causes were:
* Using incorrect conditions (assuming MSVC-like command line mode)
* Trying to compile the MSVC STL in C++11 mode, when parts of it require
C++14 or enabling MS extensions in clang.
* Missing flush in a testcase using stdout in a dll and a main part
with static crt
11 lines
170 B
C
11 lines
170 B
C
#include <stdio.h>
|
|
|
|
#if defined(_WIN32) && !defined(GREETING_STATIC)
|
|
__declspec(dllexport)
|
|
#endif
|
|
void greeting(void)
|
|
{
|
|
printf("Hello world!\n");
|
|
fflush(stdout);
|
|
}
|