summaryrefslogtreecommitdiffstats
path: root/test/cc-msvc.c
blob: 3d2cd580a447f87c533a7e0fe8f131e5e0a973d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <string.h>

int main(int argc, const char* argv[])
{
  int i;
  for (i = 1; i < argc; ++i) {
    if (strncmp(argv[i], "--cc-define=", 12) == 0) {
      fprintf(stdout, "\n#define %s 1", argv[i]+12);
    }
  }
  fprintf(stdout,
    "\n"
    "#define __cplusplus 199711L\n"
    "#define _MSC_VER 1600\n"
    "#define __has_include(x) x\n"
    "#define __has_include_next(x) x\n"
    "#define _WIN32 1\n"
    "#define __has_last(x) x"
    );
  return 0;
}