argp-xinl.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Real definitions for extern inline functions in argp.h
  2. Copyright (C) 1997-1998, 2004, 2009-2013 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. Written by Miles Bader <miles@gnu.ai.mit.edu>.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. #ifdef HAVE_CONFIG_H
  16. # include <config.h>
  17. #endif
  18. #if defined _LIBC || defined HAVE_FEATURES_H
  19. # include <features.h>
  20. #endif
  21. #ifndef __USE_EXTERN_INLINES
  22. # define __USE_EXTERN_INLINES 1
  23. #endif
  24. #ifdef _LIBC
  25. # define ARGP_EI
  26. #else
  27. # define ARGP_EI _GL_EXTERN_INLINE
  28. #endif
  29. #undef __OPTIMIZE__
  30. #define __OPTIMIZE__ 1
  31. #include "argp.h"
  32. /* Add weak aliases. */
  33. #if _LIBC - 0 && defined (weak_alias)
  34. weak_alias (__argp_usage, argp_usage)
  35. weak_alias (__option_is_short, _option_is_short)
  36. weak_alias (__option_is_end, _option_is_end)
  37. #endif