OSDN Git Service

68322a5d7585b7928e4a562d212b69b6d75c8a38
[mingw/mingw-org-wsl.git] / mingwrt / include / dir.h
1 /*
2  * dir.h
3  *
4  * Obsolete header replaced by <io.h>; this stub is retained for
5  * backward compatibility only.
6  *
7  * $Id$
8  *
9  * Written by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
10  * Copyright (C) 1997-1999, 2001, 2016, MinGW.org Project
11  *
12  *
13  * Permission is hereby granted, free of charge, to any person obtaining a
14  * copy of this software and associated documentation files (the "Software"),
15  * to deal in the Software without restriction, including without limitation
16  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
17  * and/or sell copies of the Software, and to permit persons to whom the
18  * Software is furnished to do so, subject to the following conditions:
19  *
20  * The above copyright notice, this permission notice, and the following
21  * disclaimer shall be included in all copies or substantial portions of
22  * the Software.
23  *
24  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
27  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OR OTHER
30  * DEALINGS IN THE SOFTWARE.
31  *
32  */
33 #ifndef _DIR_H
34 #pragma GCC system_header
35 #define _DIR_H
36
37 /* Header <dir.h> is obsolete, and we would like to advise the user to
38  * use <io.h> instead; however...
39  */
40 #ifndef __IN_MINGWRT_TESTSUITE__
41 /* ...this warning will interfere with the testsuite result, so display
42  * it only in normal use, (i.e. suppress it when running the testsuite)...
43  */
44 #warning "<dir.h> is obsolete; please use <io.h> instead."
45 #endif
46 /* ...always including the appropriate replacement header, regardless.
47  */
48 #include "io.h"
49
50 #endif  /* !_DIR_H: $RCSfile$: end of file */