diff --git a/JGE/include/vram.h b/JGE/include/vram.h index 4c1933d30..09147ada9 100644 --- a/JGE/include/vram.h +++ b/JGE/include/vram.h @@ -32,11 +32,7 @@ extern "C" { #endif -//void* vrelptr( void *ptr ); // make a pointer relative to memory base address (ATTENTION: A NULL rel ptr is not illegal/invalid!) -inline void* vrelptr(void *ptr) -{ - return (void*)((unsigned int)ptr & ~__MEM_START); -}; +void* vrelptr( void *ptr ); // make a pointer relative to memory base address (ATTENTION: A NULL rel ptr is not illegal/invalid!) void* vabsptr( void *ptr ); // make a pointer absolute (default return type of valloc) diff --git a/JGE/src/vram.cpp b/JGE/src/vram.cpp index 2d8f3e104..270481f17 100644 --- a/JGE/src/vram.cpp +++ b/JGE/src/vram.cpp @@ -75,7 +75,7 @@ static int __largest_block = __MEM_BLOCKS; static int __mem_free = __MEM_BLOCKS; -inline void* vrelptr( void *ptr ) +void* vrelptr( void *ptr ) { return (void*)((unsigned int)ptr & ~__MEM_START); }