mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
5c10514059
Drop out-of-place coverage of CheckFunctionExists module. The "printf" symbol is not available on VS 14 without including the <stdio.h> header to get a definition.
33 lines
588 B
C++
33 lines
588 B
C++
#include "LoadedCommand.h"
|
|
#include <stdio.h>
|
|
|
|
int testSizeOf(int s1, int s2)
|
|
{
|
|
return s1 - s2;
|
|
}
|
|
|
|
int main ()
|
|
{
|
|
int ret = 0;
|
|
|
|
#if !defined( ADDED_DEFINITION )
|
|
printf("Should have ADDED_DEFINITION defined\n");
|
|
ret= 1;
|
|
#endif
|
|
#if !defined(CMAKE_IS_FUN)
|
|
printf("Loaded Command was not built with CMAKE_IS_FUN: failed.\n");
|
|
ret = 1;
|
|
#endif
|
|
if(testSizeOf(SIZEOF_CHAR, sizeof(char)))
|
|
{
|
|
printf("Size of char is broken.\n");
|
|
ret = 1;
|
|
}
|
|
if(testSizeOf(SIZEOF_SHORT, sizeof(short)))
|
|
{
|
|
printf("Size of short is broken.\n");
|
|
ret = 1;
|
|
}
|
|
return ret;
|
|
}
|