miniupnpctypes.h 674 B

12345678910111213141516171819202122
  1. /* $Id: miniupnpctypes.h,v 1.1 2011/02/15 11:10:40 nanard Exp $ */
  2. /* Miniupnp project : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org
  3. * Author : Thomas Bernard
  4. * Copyright (c) 2021 Thomas Bernard
  5. * This software is subject to the conditions detailed in the
  6. * LICENCE file provided within this distribution */
  7. #ifndef MINIUPNPCTYPES_H_INCLUDED
  8. #define MINIUPNPCTYPES_H_INCLUDED
  9. /* Use unsigned long long when available :
  10. * strtoull is C99 */
  11. #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  12. #define UNSIGNED_INTEGER unsigned long long
  13. #define STRTOUI strtoull
  14. #else
  15. #define UNSIGNED_INTEGER unsigned int
  16. #define STRTOUI strtoul
  17. #endif
  18. #endif