aboutsummaryrefslogtreecommitdiff
path: root/include/sg_pr2serr.h
blob: 4419087eaa37e6b98d6f1a9fc81e4959a6e5b5bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef SG_PR2SERR_H
#define SG_PR2SERR_H

/*
 * Copyright (c) 2004-2018 Douglas Gilbert.
 * All rights reserved.
 * Use of this source code is governed by a BSD-style
 * license that can be found in the BSD_LICENSE file.
 */

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif


#if defined(__GNUC__) || defined(__clang__)
int pr2serr(const char * fmt, ...)
        __attribute__ ((format (printf, 1, 2)));
#else
int pr2serr(const char * fmt, ...);
#endif


#ifdef __cplusplus
}
#endif

#endif