/** @file dk4wxcs.cpp Fix configure results. Redirect output from this program to the dk4conf.h file. */ #include "config.h" #if HAVE_LARGEFILE64_SOURCE #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE 1 #endif #endif #include #if HAVE_SYS_TYPES_H #include #endif #if HAVE_SYS_STAT_H #include #endif /* wxWidgets_header_start */ #if HAVE_WXWIDGETS #include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #if HAVE_WX_CHARTYPE_H #if HAVE_WX_DEFS_H #ifndef WX_DEFS_H_INCLUDED #include #define WX_DEFS_H_INCLUDED 1 #endif #endif #ifndef WX_CHARTYPE_H_INCLUDED #include #define WX_CHARTYPE_H_INCLUDED 1 #endif #else #if HAVE_WX_WXCHAR_H #if HAVE_WX_DEFS_H #ifndef WX_DEFS_H_INCLUDED #include #define WX_DEFS_H_INCLUDED 1 #endif #endif #ifndef WX_WXCHAR_H_INCLUDED #include #define WX_WXCHAR_H_INCLUDED 1 #endif #else #ifndef WX_WX_H_INCLUDED #include #define WX_WX_H_INCLUDED 1 #endif #endif #endif #endif #endif /* wxWidgets_header_end*/ #include #ifndef TRACE_DEBUG #define TRACE_DEBUG 1 #endif int main(void) { fputs("/*\nCopyright (C) 2020, Dirk Krause.", stdout); fputs(" All rights reserved.\n", stdout); fputs("SPDX-License-Identifier: BSD-3-Clause\n", stdout); fputs("*/\n\n", stdout); fputs("#ifndef DK4WXCS_H_INCLUDED\n", stdout); fputs("/** Multiple inclusion protection.*/\n",stdout); fputs("#define DK4WXCS_H_INCLUDED 1\n\n", stdout); /* wxWidgets_body_start */ #if HAVE_WXWIDGETS fputs("/** Size of wxChar.\n*/\n", stdout); printf("#define DK4_SIZEOF_WXCHAR %u\n\n", (unsigned)sizeof(wxChar)); #if HAVE_WX_CHARTYPE_H fputs("/** Size of wxStringCharType.\n*/\n", stdout); printf("#define DK4_SIZEOF_WXSTRINGCHARTYPE %u\n\n", (unsigned)sizeof(wxStringCharType)); #else fputs("/** Size of wxStringCharType.\n*/\n", stdout); fputs("#define DK4_SIZEOF_WXSTRINGCHARTYPE 0\n\n", stdout); #endif #else fputs("/** Size of wxChar.\n*/\n", stdout); fputs("#define DK4_SIZEOF_WXCHAR 0\n\n", stdout); fputs("/** Size of wxStringCharType.\n*/\n", stdout); fputs("#define DK4_SIZEOF_WXSTRINGCHARTYPE 0\n\n", stdout); #endif /* wxWidgets_body_end */ fputs("\n\n#endif\n\n", stdout); return 0; }