https://github.com/Kitware/CMake
Revision b434b0510a37a947cf7291413134a1c0366b6358 authored by Brad King on 13 September 2013, 15:37:53 UTC, committed by CMake Topic Stage on 13 September 2013, 15:37:53 UTC
271bf10 Fix CMP0022 warning when no old-style property is set

2 parent s 1fef29e + 271bf10
Raw File
Tip revision: b434b0510a37a947cf7291413134a1c0366b6358 authored by Brad King on 13 September 2013, 15:37:53 UTC
Merge topic 'print-CMP0022-content-conflict'
Tip revision: b434b05
CMakeCCompilerABI.c
#ifdef __cplusplus
# error "A C++ compiler has been selected for C."
#endif

#ifdef __CLASSIC_C__
# define const
#endif

/*--------------------------------------------------------------------------*/

#include "CMakeCompilerABI.h"

/*--------------------------------------------------------------------------*/

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_sizeof_dptr[argc];
#if defined(ABI_ID)
  require += info_abi[argc];
#endif
  (void)argv;
  return require;
}
back to top