1 /* 2 * Copyright © 2014 Christian Persch 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 19 #ifndef __VTE_VTE_MACROS_H__ 20 #define __VTE_VTE_MACROS_H__ 21 22 #if !defined (__VTE_VTE_H_INSIDE__) && !defined (VTE_COMPILATION) 23 #error "Only <vte/vte.h> can be included directly." 24 #endif 25 26 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 6) 27 #define _VTE_GNUC_PACKED __attribute__((__packed__)) 28 #else 29 #define _VTE_GNUC_PACKED 30 #endif /* !__GNUC__ */ 31 32 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2) 33 #define _VTE_GNUC_NONNULL(position) __attribute__((__nonnull__(position))) 34 #else 35 #define _VTE_GNUC_NONNULL(position) 36 #endif 37 38 #endif /* __VTE_VTE_MACROS_H__ */ 39