Go to the documentation of this file. 1 #ifndef _OSCONFIG_DEFINED
2 #define _OSCONFIG_DEFINED
10 #define OPENSSL_EXTERN extern
11 #define OPENSSL_GLOBAL
12 #if defined( _WINDOWS ) && !defined( WINDOWS )
14 #define OPENSSL_SYS_WINDOWS
20 #define OPENSSL_SYS_WIN32
24 #if !( defined( _WIN32_WCE ) || defined( _M_X64 ) || \
25 defined( __BORLANDC__ ) || defined( NO_ASM ) )
37 #if defined( USE_ASM ) && defined( __WATCOMC__ )
38 #define ASM_EXPORT __cdecl
48 #if ULONG_MAX > 0xFFFFFFFFUL
49 #define SIXTY_FOUR_BIT
51 #define THIRTY_TWO_BIT
54 #if defined( _MSC_VER )
57 #pragma warning( disable: 4244 )
58 #pragma warning( disable: 4100 )
59 #pragma warning( disable: 4127 )
70 #if defined( __osf__ ) || defined( __alpha__ )
72 #define SIXTY_FOUR_BIT_LONG
81 #if defined( __i386__ )
88 #elif defined( __ppc__ )
97 #error Need to define CPU type for non-x86/non-PPC BeOS
103 #if defined( __FreeBSD__ ) || defined( __bsdi__ ) || \
104 defined( __OpenBSD__ ) || defined( __NetBSD__ ) || \
106 #if defined( __x86_64__ ) || defined( __amd64__ )
114 #undef SIXTY_FOUR_BIT
115 #define SIXTY_FOUR_BIT_LONG
120 #elif defined( __i386__ )
127 #elif defined( __arm ) || defined( __arm__ )
131 #elif defined( __mips__ )
141 #elif defined( __ppc__ ) || defined( __powerpc__ )
149 #elif defined( __hppa__ )
157 #elif defined( __sparc__ )
166 #error Need to define CPU type for non-x86/Arm/MIPS/PA-Risc/PPC/Sparc Linux
169 #if defined( __LINUX__ ) && defined( __WATCOMC__ )
180 #undef SIXTY_FOUR_BIT
181 #define SIXTY_FOUR_BIT_LONG
193 #if defined( MSDOS ) || defined( __MSDOS__ )
194 #if defined(__WATCOMC__)
207 #undef THIRTY_TWO_BIT
216 #if ( OSVERSION <= 5 )
240 #define SIXTY_FOUR_BIT
246 #if defined( __MWERKS__ ) || defined( SYMANTEC_C ) || defined( __MRC__ )
256 #if defined( __APPLE__ ) && !defined( __MAC__ )
257 #if defined( __ppc__ )
278 #undef THIRTY_TWO_BIT
298 #if defined( __PALMSOURCE__ )
299 #if defined( __arm ) || defined( __arm__ )
304 #error Need to define architecture-specific values for crypto code
312 #if ( OSVERSION == 0 || OSVERSION == 9 )
347 #undef THIRTY_TWO_BIT
353 #ifdef __SCO_VERSION__
356 #if defined( __GNUC__ )
383 #if defined( __GNUC__ )
410 #if defined( __GNUC__ )
432 #if defined( __SYMBIAN32__ )
433 #if defined( __MARM__ )
437 #elif defined( __EMU_SYMBIAN_OS__ )
445 #error Need to define architecture-specific values for crypto code
476 #if ( defined( _WINDOWS ) || defined( WIN32 ) || defined( _WIN32 ) )
480 #if defined( _MSC_VER )
483 #if defined( _M_X64 )
487 #undef THIRTY_TWO_BIT
488 #define SIXTY_FOUR_BIT
493 #elif ( _MSC_VER >= 1000 )
504 #undef THIRTY_TWO_BIT
509 #elif defined( __BORLANDC__ )
538 #if defined( USE_EMBEDDED_OS )
541 #if defined ( _XMK ) || defined( __XMK__ )
542 #if defined( __mb__ )
545 #elif defined( __ppc__ )
554 #error Need to define CPU type for non-MicroBlaze/non-PPC XMK.
558 #elif defined( __i386__ )
565 #elif defined( __ppc__ ) || defined( __powerpc__ )
573 #elif defined( __arm ) || defined( __arm__ )
579 #elif defined( __m68k__ )
587 #error Need to configure the crypto build options for your toolchain.
596 #define RC4_CHUNK unsigned long
602 #if !defined( _CRAY ) && !defined( L_ENDIAN ) && !defined( B_ENDIAN )
603 #error You need to add system-specific configuration settings to osconfig.h
605 #if defined( CHECK_ENDIANNESS ) && !defined( OSX_UNIVERSAL_BINARY )
609 #undef _CONFIG_DEFINED
615 #if ( defined( L_ENDIAN ) && !defined( DATA_LITTLEENDIAN ) ) || \
616 ( defined( B_ENDIAN ) && !defined( DATA_BIGENDIAN ) )
617 #error You need to synchronise the endianness configuration settings in osconfig.h and crypt.h