diff --git a/direct/src/dcparse/dcparse.cxx b/direct/src/dcparse/dcparse.cxx index 9d617aa88e..28a828b459 100644 --- a/direct/src/dcparse/dcparse.cxx +++ b/direct/src/dcparse/dcparse.cxx @@ -18,12 +18,7 @@ #include "dcTypedef.h" #include "memoryUsage.h" #include "indent.h" - -#ifndef HAVE_GETOPT -#include "gnu_getopt.h" -#else -#include -#endif +#include "panda_getopt.h" void usage() { diff --git a/direct/src/plugin_standalone/panda3d.cxx b/direct/src/plugin_standalone/panda3d.cxx index 9d299de0e3..19a21e16ec 100644 --- a/direct/src/plugin_standalone/panda3d.cxx +++ b/direct/src/plugin_standalone/panda3d.cxx @@ -17,11 +17,9 @@ #include "p3d_plugin_config.h" #include "find_root_dir.h" #include "pandaSystem.h" - -// We can include this header file to get the DTOOL_PLATFORM -// definition, even though we don't link with dtool. #include "dtool_platform.h" #include "pandaVersion.h" +#include "panda_getopt.h" #include #include @@ -32,14 +30,6 @@ #include #endif -#ifndef HAVE_GETOPT - #include "gnu_getopt.h" -#else - #ifdef PHAVE_GETOPT_H - #include - #endif -#endif - //////////////////////////////////////////////////////////////////// // Function: Panda3D::Constructor // Access: Public @@ -64,7 +54,7 @@ run_command_line(int argc, char *argv[]) { extern char *optarg; extern int optind; - // We prefix a "+" sign to tell gnu getopt not to parse options + // We prefix a "+" sign to tell getopt not to parse options // following the first not-option parameter. (These will be passed // into the sub-process.) const char *optstr = "+mu:M:Sp:nfw:t:s:o:l:iVUPh";