projects/pwm

annotate compat.h @ 26:5bdea77d0c1d

Add pwm-clip utility for setting the X11 CLIPBOARD selection
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Thu Sep 21 09:45:59 2017 +0200 (2017-09-21)
parents 5c6155c8e9b6
children
rev   line source
guido+pwm@0 1 /*
guido+pwm@8 2 * Copyright (C) 2017 Guido Berhoerster <guido+pwm@berhoerster.name>
guido+pwm@0 3 *
guido+pwm@0 4 * Permission is hereby granted, free of charge, to any person obtaining
guido+pwm@0 5 * a copy of this software and associated documentation files (the
guido+pwm@0 6 * "Software"), to deal in the Software without restriction, including
guido+pwm@0 7 * without limitation the rights to use, copy, modify, merge, publish,
guido+pwm@0 8 * distribute, sublicense, and/or sell copies of the Software, and to
guido+pwm@0 9 * permit persons to whom the Software is furnished to do so, subject to
guido+pwm@0 10 * the following conditions:
guido+pwm@0 11 *
guido+pwm@0 12 * The above copyright notice and this permission notice shall be included
guido+pwm@0 13 * in all copies or substantial portions of the Software.
guido+pwm@0 14 *
guido+pwm@0 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
guido+pwm@0 16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
guido+pwm@0 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
guido+pwm@0 18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
guido+pwm@0 19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
guido+pwm@0 20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
guido+pwm@0 21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
guido+pwm@0 22 */
guido+pwm@0 23
guido+pwm@0 24 #ifndef COMPAT_H
guido+pwm@0 25 #define COMPAT_H
guido+pwm@0 26
guido+pwm@0 27 /* for glibc asprintf, getline */
guido+pwm@8 28 #define _GNU_SOURCE
guido+pwm@0 29
guido+pwm@0 30 #ifndef HAVE_ASPRINTF
guido+pwm@0 31 #include "compat/asprintf.h"
guido+pwm@0 32 #endif /* !HAVE_ASPRINTF */
guido+pwm@0 33
guido+pwm@19 34 #ifndef HAVE_CLOSEFROM
guido+pwm@19 35 #include "compat/closefrom.h"
guido+pwm@19 36 #endif /* !HAVE_CLOSEFROM */
guido+pwm@19 37
guido+pwm@0 38 #ifndef HAVE_ERR_H
guido+pwm@0 39 #include "compat/err.h"
guido+pwm@0 40 #endif /* !HAVE_ERR_H */
guido+pwm@0 41
guido+pwm@26 42 #ifndef HAVE_GETLINE
guido+pwm@26 43 #include "compat/getline.h"
guido+pwm@26 44 #endif /* !HAVE_GETLINE */
guido+pwm@26 45
guido+pwm@0 46 #ifndef HAVE_GETENTROPY
guido+pwm@0 47 #include "compat/getentropy.h"
guido+pwm@0 48 #endif /* !HAVE_GETENTROPY */
guido+pwm@0 49
guido+pwm@17 50 #ifndef HAVE_SYS_QUEUE_H
guido+pwm@17 51 #include "compat/queue.h"
guido+pwm@17 52 #endif /* !HAVE_SYS_QUEUE_H */
guido+pwm@17 53
guido+pwm@0 54 #ifndef HAVE_SETPROGNAME
guido+pwm@0 55 #include "compat/setprogname.h"
guido+pwm@0 56 #endif /* !HAVE_SETPROGNAME */
guido+pwm@0 57
guido+pwm@0 58 #ifndef HAVE_SYS_TREE_H
guido+pwm@0 59 #include "compat/tree.h"
guido+pwm@0 60 #endif /* !HAVE_SYS_TREE_H */
guido+pwm@0 61
guido+pwm@0 62 #endif /* COMPAT_H */