summaryrefslogtreecommitdiff
path: root/support/dktools/wxcs.cpp
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/dktools/wxcs.cpp
Initial commit
Diffstat (limited to 'support/dktools/wxcs.cpp')
-rw-r--r--support/dktools/wxcs.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/support/dktools/wxcs.cpp b/support/dktools/wxcs.cpp
new file mode 100644
index 0000000000..c78b058ca6
--- /dev/null
+++ b/support/dktools/wxcs.cpp
@@ -0,0 +1,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
+