aboutsummaryrefslogtreecommitdiff
path: root/include/sg_lib.h
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2017-12-09 05:42:58 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2017-12-09 05:42:58 +0000
commite2be6d218fe1f8096b511e3fcbca042002063db3 (patch)
tree3e72cf512afce9584b5d973f7d54142965ea81b8 /include/sg_lib.h
parent5b10cb900c43a4b5b761eb0caf6d677ced538bfe (diff)
downloadsg3_utils-e2be6d218fe1f8096b511e3fcbca042002063db3.tar.gz
Clean C++ and clang errors and warnings; fix FreeBSD problem; sg_write_x: bit more work
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@735 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_lib.h')
-rw-r--r--include/sg_lib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sg_lib.h b/include/sg_lib.h
index 9c457350..da51749e 100644
--- a/include/sg_lib.h
+++ b/include/sg_lib.h
@@ -123,6 +123,12 @@ extern "C" {
#define SG_LIB_UNBOUNDED_32BIT 0xffffffffU
#define SG_LIB_UNBOUNDED_64BIT 0xffffffffffffffffULL
+#if (__STDC_VERSION__ >= 199901L) /* C99 or later */
+ typedef uintptr_t sg_uintptr_t;
+#else
+ typedef unsigned long sg_uintptr_t;
+#endif
+
/* The format of the version string is like this: "2.26 20170906" */
const char * sg_lib_version();