summaryrefslogtreecommitdiff
path: root/support/dktools/wxcs.cpp
blob: c78b058ca6f048877f9cafd656f1f6472f796ef4 (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

#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

#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif 
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

int main(int argc, char *argv[])
{
  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(int argc, char *argv[])
{
  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