projects/libpws

annotate compat.h @ 13:2bb1bbac1d0a

Added tag version-1.0.0 for changeset 1926dfc9feb0
author Guido Berhoerster <guido+libpws@berhoerster.name>
date Sun Aug 04 21:37:56 2019 +0200 (2019-08-04)
parents 97097b4b6bfb
children
rev   line source
guido+libpws@0 1 /*
guido+libpws@0 2 * Copyright (C) 2015 Guido Berhoerster <guido+libpws@berhoerster.name>
guido+libpws@0 3 *
guido+libpws@0 4 * Permission is hereby granted, free of charge, to any person obtaining
guido+libpws@0 5 * a copy of this software and associated documentation files (the
guido+libpws@0 6 * "Software"), to deal in the Software without restriction, including
guido+libpws@0 7 * without limitation the rights to use, copy, modify, merge, publish,
guido+libpws@0 8 * distribute, sublicense, and/or sell copies of the Software, and to
guido+libpws@0 9 * permit persons to whom the Software is furnished to do so, subject to
guido+libpws@0 10 * the following conditions:
guido+libpws@0 11 *
guido+libpws@0 12 * The above copyright notice and this permission notice shall be included
guido+libpws@0 13 * in all copies or substantial portions of the Software.
guido+libpws@0 14 *
guido+libpws@0 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
guido+libpws@0 16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
guido+libpws@0 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
guido+libpws@0 18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
guido+libpws@0 19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
guido+libpws@0 20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
guido+libpws@0 21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
guido+libpws@0 22 */
guido+libpws@0 23
guido+libpws@0 24 #ifndef COMPAT_H
guido+libpws@0 25 #define COMPAT_H
guido+libpws@0 26
guido+libpws@0 27 #include "compat/pws-compat.h"
guido+libpws@0 28
guido+libpws@0 29 /* for FreeBSD getline() */
guido+libpws@0 30 #define _WITH_GETLINE
guido+libpws@0 31
guido+libpws@0 32 /* for glibc endian.h */
guido+libpws@0 33 #define _BSD_SOURCE
guido+libpws@7 34 #define _DEFAULT_SOURCE
guido+libpws@0 35
guido+libpws@0 36 #if !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H)
guido+libpws@0 37 #include "compat/endian.h"
guido+libpws@0 38 #endif /* !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) */
guido+libpws@0 39
guido+libpws@2 40 #ifndef HAVE_ERR_H
guido+libpws@2 41 #include "compat/err.h"
guido+libpws@2 42 #endif /* !HAVE_ERR_H */
guido+libpws@2 43
guido+libpws@0 44 #ifndef HAVE_GETENTROPY
guido+libpws@0 45 #include "compat/getentropy.h"
guido+libpws@0 46 #endif /* !HAVE_GETENTROPY */
guido+libpws@0 47
guido+libpws@2 48 #ifndef HAVE_GETLINE
guido+libpws@2 49 #include "compat/getline.h"
guido+libpws@2 50 #endif /* !HAVE_GETLINE */
guido+libpws@2 51
guido+libpws@2 52 #ifndef HAVE_READPASSPHRASE_H
guido+libpws@2 53 #include "compat/readpassphrase.h"
guido+libpws@2 54 #endif /* !HAVE_READPASSPHRASE_H */
guido+libpws@2 55
guido+libpws@2 56 #ifndef HAVE_SETPROGNAME
guido+libpws@2 57 #include "compat/setprogname.h"
guido+libpws@2 58 #endif /* !HAVE_SETPROGNAME */
guido+libpws@2 59
guido+libpws@0 60 #ifndef HAVE_SYS_TREE_H
guido+libpws@0 61 #include "compat/tree.h"
guido+libpws@0 62 #endif /* !HAVE_SYS_TREE_H */
guido+libpws@0 63
guido+libpws@2 64 #ifndef HAVE_VIS_H
guido+libpws@2 65 #include "compat/vis.h"
guido+libpws@2 66 #endif /* !HAVE_VIS_H */
guido+libpws@2 67
guido+libpws@0 68 #endif /* COMPAT_H */