Merge to trunk head (r46631)
[reactos.git] / lib / 3rdparty / mingw / wildcard.c
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7 /* _dowildcard is an int that controls the globbing of the command line.
8 * If _dowildcard is non-zero, the command line will be globbed: *.*
9 * will be expanded to be all files in the startup directory.
10 *
11 * In the mingw-w64 library the _dowildcard variable is defined as being
12 * 0, therefore command line globbing is DISABLED by default. To turn it
13 * on and to leave wildcard command line processing MS's globbing code,
14 * include a line in one of your source modules defining _dowildcard and
15 * setting it to -1, like so:
16 * int _dowildcard = -1;
17 *
18 * Alternatively, the mingw-w64 library can be configured using the
19 * --enable-wildcard option and compiled thusly upon which the resulting
20 * library will have _dowildcard as -1 and command line globbing will be
21 * enabled by default.
22 */
23
24 #ifdef HAVE_CONFIG_H
25 #include "config.h"
26 #endif
27
28 #ifndef __ENABLE_GLOBBING
29 #define __ENABLE_GLOBBING 0 /* -1 */
30 #endif
31
32 int _dowildcard = __ENABLE_GLOBBING;
33