summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/SharedLibraryDefines/checker.h
blob: fcf445f6caca548af002fdf8b3cee96c9551e0e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#ifdef MUST_HAVE_DEFINE
#  ifndef _WINDLL
#    error "_WINDLL is not defined, but it should be"
#  endif
#  if _WINDLL != 1
#    error "_WINDLL is not defined as 1, but it should be"
#  endif
#else
#  ifdef _WINDLL
#    error "_WINDLL is defined, but it should not be"
#  endif
#endif

int FUNCTION(void)
{
  return 0;
}