/* Copyright (C) 2008 Andreas Baumann 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 3 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, see . */ #ifndef __STDINT_H #define __STDINT_H #include "port/sys.h" /* for uintptr_t and snprintf placeholder PRIdPTR (FIXME: * needs a lot of improvement!) */ #if defined SUNOS #if OS_MAJOR_VERSION == 5 #if OS_MINOR_VERSION == 8 #include /* FIXME: this may depend on 32/64-bit version of Solaris 8! */ #define PRIdPTR "d" typedef unsigned long long uint64_t; #else #include #include #endif /* OS_MINOR_VERSION == 8 */ #else #include #include #endif /* OS_MAJOR_VERSION == 5 */ #else #include #include #endif /* defined SUNOS */ #endif /* ifndef __STDINT_H */