forked from wireshark/wireshark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli_main.h
More file actions
21 lines (20 loc) · 681 Bytes
/
cli_main.h
File metadata and controls
21 lines (20 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* 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