aboutsummaryrefslogtreecommitdiff
path: root/include/sg_pr2serr.h
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2018-01-19 20:14:20 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2018-01-19 20:14:20 +0000
commit6293187a432dd0bbf85961a897755bd0260f28ad (patch)
treed8a060af6e3e03f286881dc4d5ed6a398e466ccd /include/sg_pr2serr.h
parent400444efd4e3c2cd758aee250556c84e052634dc (diff)
downloadsg3_utils-6293187a432dd0bbf85961a897755bd0260f28ad.tar.gz
update BSD license from 3 to 2 clause aka FreeBSD license (without reference to FreeBSD project); more hex2* cleanup
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@746 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_pr2serr.h')
-rw-r--r--include/sg_pr2serr.h12
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