< prev index next >

src/share/native/com/sun/media/sound/SoundDefs.h

Print this page




  28 
  29 
  30 // types for X_PLATFORM
  31 #define X_WINDOWS       1
  32 #define X_SOLARIS       2
  33 #define X_LINUX         3
  34 #define X_BSD           4
  35 #define X_MACOSX        5
  36 
  37 // types for X_ARCH
  38 #define X_I586          1
  39 #define X_SPARC         2
  40 #define X_SPARCV9       3
  41 #define X_IA64          4
  42 #define X_AMD64         5
  43 #define X_ZERO          6
  44 #define X_ARM           7
  45 #define X_PPC           8
  46 #define X_PPC64         9
  47 #define X_PPC64LE      10

  48 
  49 // **********************************
  50 // Make sure you set X_PLATFORM and X_ARCH defines correctly.
  51 // Everything depends upon this flag being setup correctly.
  52 // **********************************
  53 
  54 #if (X_PLATFORM == X_MACOSX) && !defined(X_ARCH)
  55 #if __x86_64__
  56 #define X_ARCH X_AMD64
  57 #endif
  58 #if __i386__
  59 #define X_ARCH X_I586
  60 #endif
  61 #endif
  62 
  63 #if (!defined(X_PLATFORM) || !defined(X_ARCH))
  64 #error "You need to define X_PLATFORM and X_ARCH outside of the source. Use the types above."
  65 #endif
  66 
  67 




  28 
  29 
  30 // types for X_PLATFORM
  31 #define X_WINDOWS       1
  32 #define X_SOLARIS       2
  33 #define X_LINUX         3
  34 #define X_BSD           4
  35 #define X_MACOSX        5
  36 
  37 // types for X_ARCH
  38 #define X_I586          1
  39 #define X_SPARC         2
  40 #define X_SPARCV9       3
  41 #define X_IA64          4
  42 #define X_AMD64         5
  43 #define X_ZERO          6
  44 #define X_ARM           7
  45 #define X_PPC           8
  46 #define X_PPC64         9
  47 #define X_PPC64LE      10
  48 #define X_AARCH64      11
  49 
  50 // **********************************
  51 // Make sure you set X_PLATFORM and X_ARCH defines correctly.
  52 // Everything depends upon this flag being setup correctly.
  53 // **********************************
  54 
  55 #if (X_PLATFORM == X_MACOSX) && !defined(X_ARCH)
  56 #if __x86_64__
  57 #define X_ARCH X_AMD64
  58 #endif
  59 #if __i386__
  60 #define X_ARCH X_I586
  61 #endif
  62 #endif
  63 
  64 #if (!defined(X_PLATFORM) || !defined(X_ARCH))
  65 #error "You need to define X_PLATFORM and X_ARCH outside of the source. Use the types above."
  66 #endif
  67 
  68 


< prev index next >