opensslconf.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * modify by zhllxt
  3. */
  4. #ifndef __ASIO2_OPENSSLCONF_H__
  5. #define __ASIO2_OPENSSLCONF_H__
  6. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  7. #pragma once
  8. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  9. #include <asio2/bho/predef.h>
  10. #if defined(BHO_OS_WINDOWS) && (BHO_ARCH_WORD_BITS == 64)
  11. # include <openssl/opensslconf_win64.h>
  12. #elif defined(BHO_OS_WINDOWS) && (BHO_ARCH_WORD_BITS == 32)
  13. # include <openssl/opensslconf_win32.h>
  14. #elif defined(BHO_OS_LINUX ) && (BHO_ARCH_WORD_BITS == 64)
  15. # include <openssl/opensslconf_linux64.h>
  16. #elif defined(BHO_OS_LINUX ) && (BHO_ARCH_WORD_BITS == 32)
  17. # include <openssl/opensslconf_linux32.h>
  18. #elif defined(BHO_OS_MACOS ) && (BHO_ARCH_WORD_BITS == 64)
  19. # include <openssl/opensslconf_linux64.h> // May be incorrect
  20. #elif defined(BHO_OS_MACOS ) && (BHO_ARCH_WORD_BITS == 32)
  21. # include <openssl/opensslconf_linux32.h> // May be incorrect
  22. #elif defined(BHO_OS_IOS ) && (BHO_ARCH_WORD_BITS == 64)
  23. # include <openssl/opensslconf_linux64.h> // May be incorrect
  24. #elif defined(BHO_OS_IOS ) && (BHO_ARCH_WORD_BITS == 32)
  25. # include <openssl/opensslconf_linux32.h> // May be incorrect
  26. #elif defined(BHO_OS_UNIX ) && (BHO_ARCH_WORD_BITS == 64)
  27. # include <openssl/opensslconf_linux64.h> // May be incorrect
  28. #elif defined(BHO_OS_UNIX ) && (BHO_ARCH_WORD_BITS == 32)
  29. # include <openssl/opensslconf_linux32.h> // May be incorrect
  30. #elif (BHO_ARCH_WORD_BITS == 64)
  31. # include <openssl/opensslconf_linux64.h> // May be incorrect
  32. #elif (BHO_ARCH_WORD_BITS == 32)
  33. # include <openssl/opensslconf_linux32.h> // May be incorrect
  34. #endif
  35. #endif // !__ASIO2_OPENSSLCONF_H__