It is common for various headers from various projects to create
typedefs with these names.  Using #define instead of typedef risks
syntax errors in other headers that provide these typedefs.  It is
safe to repeat typedefs, so simply switch from #define to typedef to
avoid problems.
---
 lib/casn/asn.h | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/casn/asn.h b/lib/casn/asn.h
index 554e823..8524d5c 100644
--- a/lib/casn/asn.h
+++ b/lib/casn/asn.h
@@ -11,11 +11,9 @@ Remarks:
 #ifndef _ASN_H
 #define _ASN_H
 
-#define uchar unsigned char
-#ifndef ushort
-#define ushort unsigned short
-#endif
-#define ulong unsigned long
+typedef unsigned char uchar;
+typedef unsigned short ushort;
+typedef unsigned long ulong;
 
 #define ASN_ANY              0
 #define ASN_BOOLEAN          1
-- 
2.4.5


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
rpstir-devel mailing list
rpstir-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpstir-devel

Reply via email to