summaryrefslogtreecommitdiffstats
path: root/ui/all_files_wildcard.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/all_files_wildcard.h')
-rw-r--r--ui/all_files_wildcard.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/ui/all_files_wildcard.h b/ui/all_files_wildcard.h
new file mode 100644
index 0000000..4499d8c
--- /dev/null
+++ b/ui/all_files_wildcard.h
@@ -0,0 +1,30 @@
+/** @file
+ *
+ * Definition of a macro for the file wildcard pattern that matches
+ * all files
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef __ALL_FILES_WILDCARD_H__
+#define __ALL_FILES_WILDCARD_H__
+
+#ifdef _WIN32
+/*
+ * On Windows, the wildcard for matching all files is "*.*", which
+ * even matches files with no extension.
+ */
+#define ALL_FILES_WILDCARD "*.*"
+#else
+/*
+ * On UN*X, the wildcard for matching all files is "*"; "*.*" only
+ * matches files with at least one extension.
+ */
+#define ALL_FILES_WILDCARD "*"
+#endif
+
+#endif /* __ALL_FILES_WILDCARD_H__ */