diff options
Diffstat (limited to 'include/sg_pr2serr.h')
-rw-r--r-- | include/sg_pr2serr.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/sg_pr2serr.h b/include/sg_pr2serr.h index 71db2ec5..4419087e 100644 --- a/include/sg_pr2serr.h +++ b/include/sg_pr2serr.h @@ -2,7 +2,7 @@ #define SG_PR2SERR_H /* - * Copyright (c) 2004-2016 Douglas Gilbert. + * 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. @@ -10,6 +10,11 @@ #include <stdio.h> +#ifdef __cplusplus +extern "C" { +#endif + + #if defined(__GNUC__) || defined(__clang__) int pr2serr(const char * fmt, ...) __attribute__ ((format (printf, 1, 2))); @@ -17,4 +22,9 @@ int pr2serr(const char * fmt, ...) int pr2serr(const char * fmt, ...); #endif + +#ifdef __cplusplus +} +#endif + #endif |