panda_getopt_long.h 840 B

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