/* * nut_stdint.h - Network UPS Tools sets of integer types having specified widths * * Copyright (C) 2011 Arjen de Korte * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef NUT_STDINT_H_SEEN #define NUT_STDINT_H_SEEN 1 #include "config.h" #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #ifndef __STDC_CONSTANT_MACROS #define __STDC_CONSTANT_MACROS 1 #endif #if defined HAVE_INTTYPES_H # include #endif #if defined HAVE_STDINT_H # include #endif #if defined HAVE_LIMITS_H # include #endif #ifndef SIZE_MAX #define SIZE_MAX ((size_t)(-1LL)) #endif #ifndef SSIZE_MAX #define SSIZE_MAX ((ssize_t)(-1LL)) #endif /* Printing format for size_t and ssize_t */ #ifndef PRIsize # if defined(__MINGW32__) # define PRIsize "u" # else # define PRIsize "zu" # endif #endif #ifndef PRIssize # if defined(__MINGW32__) # define PRIssize "d" # else # define PRIssize "zd" # endif #endif /* format for size_t and ssize_t */ #endif /* NUT_STDINT_H_SEEN */