#ifndef PSTOREJNI_H
#define PSTOREJNI_H

#include <inttypes.h>

#ifdef __i386__
  #define LONG_TO_PTR(ptr) (void *) (uint32_t) ptr
#elif __X86_64__
  #define LONG_TO_PTR(ptr) (void *) ptr
#endif

#define PTR_TO_LONG(ptr) (long) ptr

#endif

#ifndef PSTOREJNI_H
#define PSTOREJNI_H

#include <inttypes.h>

#ifdef __i386__
  #define LONG_TO_PTR(ptr) (void *) (uint32_t) ptr
#elif __x86_64__
  #define LONG_TO_PTR(ptr) (void *) ptr
#endif

#define PTR_TO_LONG(ptr) (long) ptr

#endif

Use '__x86_64__' instead of '__X86_64__'
java: Use '__x86_64__' instead of '__X86_64__'

This fixes compilation error on Mac OS X.

Signed-off-by: Kare Nuorteva <9ddc85c347529f7b35a7cd6b44bef03c7222a8be@reaktor.fi>
Signed-off-by: Karim Osman <94396faf6cc817be76165477038b3cfa832e89a4@reaktor.fi>
Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>
