summaryrefslogtreecommitdiffstats
path: root/cli_main.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /cli_main.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'cli_main.h')
-rw-r--r--cli_main.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/cli_main.h b/cli_main.h
new file mode 100644
index 00000000..d05b9f28
--- /dev/null
+++ b/cli_main.h
@@ -0,0 +1,22 @@
+/** @file
+ *
+ * Declaration of the real main routine, for all CLI programs where the
+ * main routine should get UTF-8 arguments on Windows. In those programs,
+ * in the file that defines the main routine, include this header and link
+ * those programs with cli_main.c.
+ *
+ * This is used in software licensed under the GPLv2, and its license MUST
+ * be compatible with that license.
+ *
+ * This is used in software licensed under the Apache 2.0 license, and its
+ * license MUST be compatible with that license.
+ *
+ * For that purpose, we use the MIT (X11) license.
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifdef _WIN32
+int real_main(int argc, char *argv[]);
+#define main real_main
+#endif