summaryrefslogtreecommitdiff
path: root/support/dktools/wxcs.cpp
blob: 29bc42a8879606d2ede9ee9b8cb403c87aea4e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

#include "dk4conf.h"
#include <stdio.h>
#if DK4_HAVE_STDLIB_H
#include <stdlib.h>
#endif
#if DK4_HAVE_UNISTD_H
#include <unistd.h>
#endif
#if DK4_HAVE_PROCESS_H
#include <process.h>
#endif

#if DK4_HAVE_WXWIDGETS

/* wxWidgets_header_start */
#if DK4_HAVE_WXWIDGETS
#include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif 
#ifndef WX_PRECOMP
#if DK4_HAVE_WX_CHARTYPE_H
#if DK4_HAVE_WX_DEFS_H
#ifndef WX_DEFS_H_INCLUDED
#include <wx/defs.h>
#define WX_DEFS_H_INCLUDED 1
#endif
#endif
#ifndef WX_CHARTYPE_H_INCLUDED
#include <wx/chartype.h>
#define WX_CHARTYPE_H_INCLUDED 1
#endif
#else
#if	DK4_HAVE_WX_WXCHAR_H
#if DK4_HAVE_WX_DEFS_H
#ifndef WX_DEFS_H_INCLUDED
#include <wx/defs.h>
#define WX_DEFS_H_INCLUDED 1
#endif
#endif
#ifndef WX_WXCHAR_H_INCLUDED
#include <wx/wxchar.h>
#define WX_WXCHAR_H_INCLUDED 1
#endif
#else
#ifndef WX_WX_H_INCLUDED
#include <wx/wx.h>
#define WX_WX_H_INCLUDED 1
#endif
#endif
#endif
#endif
#endif
/* wxWidgets_header_end*/

int main(void)
{
  printf("/**\t@file\tdk4wxcs.h\tConfigure size of wide characters.\n*/\n\n");
  printf("#ifndef DK4WXCSZ_H_INCLUDED\n");
  printf("/** Protection against multiple inclusions. */\n");
  printf("#define DK4WXCSZ_H_INCLUDED 1\n\n");
  printf("/** Size of wxChar.\n*/\n");
  printf("#define DK4_SIZEOF_WXCHAR %u\n\n", (unsigned)sizeof(wxChar));
  printf("#endif\n");
  return 0;
}

#else

int main(void)
{
  printf("/**\t@file\tdk4wxcs.h\tConfigure size of wide characters.\n*/\n\n");
  printf("#ifndef DK4WXCSZ_H_INCLUDED\n");
  printf("/** Protection against multiple inclusions. */\n");
  printf("#define DK4WXCSZ_H_INCLUDED 1\n\n");
  printf("/** Size of wxChar.\n*/\n");
  printf("#define DK4_SIZEOF_WXCHAR 0\n\n");
  printf("#endif\n");
  return 0;
}

#endif