Author: agrundman
Date: Sat Jun 19 08:03:15 2010
New Revision: 8892

URL: http://svn.slimdevices.com/jive?rev=8892&view=rev
Log:
Win32 fix

Modified:
    7.6/trunk/squeezeplay/src/Tremor/misc.c

Modified: 7.6/trunk/squeezeplay/src/Tremor/misc.c
URL: 
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/Tremor/misc.c?rev=8892&r1=8891&r2=8892&view=diff
==============================================================================
--- 7.6/trunk/squeezeplay/src/Tremor/misc.c (original)
+++ 7.6/trunk/squeezeplay/src/Tremor/misc.c Sat Jun 19 08:03:15 2010
@@ -117,7 +117,11 @@
 
   global_bytes+=(bytes-HEAD_ALIGN);
 
+#if defined(_MSC_VER)   
+  return((char *)ptr+HEAD_ALIGN);
+#else
   return(ptr+HEAD_ALIGN);
+#endif
 }
 
 static void _ripremove(void *ptr){
@@ -190,7 +194,11 @@
 extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line){
   bytes+=HEAD_ALIGN;
   if(ptr){
+#if defined(_MSC_VER)
+    ptr = (char *)ptr - HEAD_ALIGN;
+#else
     ptr-=HEAD_ALIGN;
+#endif
     _ripremove(ptr);
     ptr=realloc(ptr,bytes);
   }else{
@@ -202,7 +210,11 @@
 
 extern void _VDBG_free(void *ptr,char *file,long line){
   if(ptr){
+#if defined(_MSC_VER)
+    ptr = (char *)ptr - HEAD_ALIGN;
+#else
     ptr-=HEAD_ALIGN;
+#endif
     _ripremove(ptr);
     free(ptr);
   }

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to