Panda3D

panda_getopt_long.h

00001 /* Filename: panda_getopt.h
00002  * Created by:  drose (19Jul11)
00003  *
00004  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00005  *
00006  * PANDA 3D SOFTWARE
00007  * Copyright (c) Carnegie Mellon University.  All rights reserved.
00008  *
00009  * All use of this software is subject to the terms of the revised BSD
00010  * license.  You should have received a copy of this license along
00011  * with this source code in a file named "LICENSE."
00012  *
00013  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00014 
00015 #ifndef PANDA_GETOPT_LONG_H
00016 #define PANDA_GETOPT_LONG_H
00017 
00018 #include "dtoolbase.h"
00019 
00020 /* Include this file to get a definition of getopt_long() or
00021    getopt_long_only(). */
00022 
00023 #ifndef HAVE_GETOPT_LONG_ONLY
00024   /* If our system getopt() doesn't come with getopt_long_only(), then use
00025      our own implementation. */
00026   #include "panda_getopt_impl.h"
00027 #else
00028   /* We prefer to use the system version if it is available. */
00029   #ifdef PHAVE_GETOPT_H
00030     #include <getopt.h>
00031   #endif
00032 #endif
00033 
00034 #endif
00035 
 All Classes Functions Variables Enumerations