adjusted definitions to include gcc 4.x into the supported compilers list


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@911 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/NativeReal.c b/skeletons/NativeReal.c
index f2a3afc..f7755db 100644
--- a/skeletons/NativeReal.c
+++ b/skeletons/NativeReal.c
@@ -93,8 +93,14 @@
 	 */
 	{
 		REAL_t tmp;
+		union {
+			const void *constbuf;
+			void *nonconstbuf;
+		} unconst_buf;
 		double d;
-		(const uint8_t *)tmp.buf = (const uint8_t *)buf_ptr;
+
+		unconst_buf.constbuf = buf_ptr;
+		tmp.buf = (uint8_t *)unconst_buf.nonconstbuf;
 		tmp.size = length;
 
 		if(asn_REAL2double(&tmp, &d)) {