Panda3D
panda_getopt_long.h
1 /* Filename: panda_getopt.h
2  * Created by: drose (19Jul11)
3  *
4  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
5  *
6  * PANDA 3D SOFTWARE
7  * Copyright (c) Carnegie Mellon University. All rights reserved.
8  *
9  * All use of this software is subject to the terms of the revised BSD
10  * license. You should have received a copy of this license along
11  * with this source code in a file named "LICENSE."
12  *
13  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
14 
15 #ifndef PANDA_GETOPT_LONG_H
16 #define PANDA_GETOPT_LONG_H
17 
18 #include "dtoolbase.h"
19 
20 /* Include this file to get a definition of getopt_long() or
21  getopt_long_only(). */
22 
23 #ifndef HAVE_GETOPT_LONG_ONLY
24  /* If our system getopt() doesn't come with getopt_long_only(), then use
25  our own implementation. */
26  #include "panda_getopt_impl.h"
27 #else
28  /* We prefer to use the system version if it is available. */
29  #ifdef PHAVE_GETOPT_H
30  #include <getopt.h>
31  #endif
32 #endif
33 
34 #endif
35