| 1 | /* $Id: miniupnpctypes.h,v 1.5 2025/03/02 01:15:44 nanard Exp $ */ |
| 2 | /* Project: miniupnp |
| 3 | * http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org |
| 4 | * Author: Thomas Bernard |
| 5 | * Copyright (c) 2021-2025 Thomas Bernard |
| 6 | * This software is subject to the conditions detailed in the |
| 7 | * LICENCE file provided within this distribution */ |
| 8 | #ifndef MINIUPNPCTYPES_H_INCLUDED |
| 9 | #define MINIUPNPCTYPES_H_INCLUDED |
| 10 | |
| 11 | /*! \file miniupnpctypes.h |
| 12 | * \brief type definitions |
| 13 | * |
| 14 | * Use unsigned long long when available : |
| 15 | * strtoull is C99 |
| 16 | * |
| 17 | * \def UNSIGNED_INTEGER |
| 18 | * \brief `unsigned long long` or `unsigned int` |
| 19 | * \todo int can be 16 bits, so it should be `unsigned long` |
| 20 | */ |
| 21 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
| 22 | #define UNSIGNED_INTEGER unsigned long long |
| 23 | #else |
| 24 | #define UNSIGNED_INTEGER unsigned int |
| 25 | #endif |
| 26 | |
| 27 | #endif |
| 28 | |