1 #ifndef SG_PR2SERR_H 2 #define SG_PR2SERR_H 3 4 /* 5 * Copyright (c) 2004-2018 Douglas Gilbert. 6 * All rights reserved. 7 * Use of this source code is governed by a BSD-style 8 * license that can be found in the BSD_LICENSE file. 9 */ 10 11 #include <stdio.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 18 #if defined(__GNUC__) || defined(__clang__) 19 int pr2serr(const char * fmt, ...) 20 __attribute__ ((format (printf, 1, 2))); 21 #else 22 int pr2serr(const char * fmt, ...); 23 #endif 24 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif 31