1 /* 2 * Copyright (C) 2017 - This file is part of libecc project 3 * 4 * Authors: 5 * Ryad BENADJILA <ryadbenadjila@gmail.com> 6 * Arnaud EBALARD <arnaud.ebalard@ssi.gouv.fr> 7 * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr> 8 * 9 * Contributors: 10 * Nicolas VIVET <nicolas.vivet@ssi.gouv.fr> 11 * Karim KHALFALLAH <karim.khalfallah@ssi.gouv.fr> 12 * 13 * This software is licensed under a dual BSD and GPL v2 license. 14 * See LICENSE file at the root folder of the project. 15 */ 16 #ifndef __PRINT_H__ 17 #define __PRINT_H__ 18 19 /* Explicitly include the inttypes here */ 20 #ifdef WITH_STDLIB 21 /* We include inttypes.h for the PRI* macros */ 22 #include <inttypes.h> 23 #endif 24 25 #if (__GNUC__ * 10 + __GNUC_MINOR__ >= 42) 26 #define LIBECC_FORMAT_FUNCTION(F,A) __attribute__((format(__printf__, F, A))) 27 #else 28 #define LIBECC_FORMAT_FUNCTION(F,A) 29 #endif 30 31 LIBECC_FORMAT_FUNCTION(1, 2) 32 void ext_printf(const char *format, ...); 33 34 #endif /* __PRINT_H__ */ 35