Tests/RunCMake/SharedLibraryDefines/checker.h
raw| 1 | #pragma once |
| 2 | |
| 3 | #ifdef MUST_HAVE_DEFINE |
| 4 | # ifndef _WINDLL |
| 5 | # error "_WINDLL is not defined, but it should be" |
| 6 | # endif |
| 7 | # if _WINDLL != 1 |
| 8 | # error "_WINDLL is not defined as 1, but it should be" |
| 9 | # endif |
| 10 | #else |
| 11 | # ifdef _WINDLL |
| 12 | # error "_WINDLL is defined, but it should not be" |
| 13 | # endif |
| 14 | #endif |
| 15 | |
| 16 | int FUNCTION(void) |
| 17 | { |
| 18 | return 0; |
| 19 | } |