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_H 00016 #define PANDA_GETOPT_H 00017 00018 #include "dtoolbase.h" 00019 00020 /* Include this file to get a definition of getopt(). */ 00021 00022 #ifndef HAVE_GETOPT 00023 /* If the system doesn't provide a getopt(), use our own implementation. */ 00024 #include "panda_getopt_impl.h" 00025 #else 00026 /* We prefer to use the system version if it is available. */ 00027 #ifdef PHAVE_GETOPT_H 00028 #include <getopt.h> 00029 #endif 00030 #endif 00031 00032 #endif 00033