0000002d
  *   ˆl–Ðz¾”ªe¶…8 ^¸ÜdJbÑ¿Áƒy¦›_†I|¥�+ÁÀ  ý    /*
 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the Apache License 2.0 (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

#ifndef OPENSSL_E_OS2_H
#define OPENSSL_E_OS2_H
#pragma once

#include <openssl/macros.h>
#ifndef OPENSSL_NO_DEPRECATED_3_0
#define HEADER_E_OS2_H
#endif

#include <openssl/opensslconf.h>

#ifdef __cplusplus
extern "C" {
#endif

/******************************************************************************
 * Detect operating systems.  This probably needs completing.
 * The result is that at least one OPENSSL_SYS_os macro should be defined.
 * However, if none is defined, Unix is assumed.
 **/

#define OPENSSL_SYS_UNIX

/* --------------------- Microsoft operating systems ---------------------- */

/*
 * Note that MSDOS actually denotes 32-bit environments running on top of
 * MS-DOS, such as DJGPP one.
 */
#if defined(OPENSSL_SYS_MSDOS)
#undef OPENSSL_SYS_UNIX
#endif

/*
 * For 32 bit environment, there seems to be the CygWin environment and then
 * all the others that try to do the same thing Microsoft does...
 */
/*
 * UEFI lives here because it might be built with a Microsoft toolchain and
 * we need to avoid the false positive match on Windows.
 */
#if defined(OPENSSL_SYS_UEFI)
#undef OPENSSL_SYS_UNIX
#elif defined(OPENSSL_SYS_UWIN)
#undef OPENSSL_SYS_UNIX
#define OPENSSL_SYS_WIN32_UWIN
#else
#if defined(__CYGWIN__) || defined(OPENSSL_SYS_CYGWIN)
#define OPENSSL_SYS_WIN32_CYGWIN
#else
#if defined(_WIN32) || defined(OPENSSL_SYS_WIN32)
#undef OPENSSL_SYS_UNIX
#if !defined(OPENSSL_SYS_WIN32)
#define OPENSSL_SYS_WIN32
#endif
#endif
#if defined(_WIN64) || defined(OPENSSL_SYS_WIN64)
#undef OPENSSL_SYS_UNIX
#if !defined(OPENSSL_SYS_WIN64)
#define OPENSSL_SYS_WIN64
#endif
#endif
#if defined(OPENSSL_SYS_WINNT)
#undef OPENSSL_SYS_UNIX
#endif
#if defined(OPENSSL_SYS_WINCE)
#undef OPENSSL_SYS_UNIX
#endif
#endif
#endif

/* Anything that tries to look like Microsoft is "Windows" */
#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WIN64) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE)
#undef OPENSSL_SYS_UNIX
#define OPENSSL_SYS_WINDOWS
#ifndef OPENSSL_SYS_MSDOS
#define OPENSSL_SYS_MSDOS
#endif
#endif

/*
 * DLL settings.  This part is a bit tough, because it's up to the
 * application implementer how he or she will link the application, so it
 * requires some macro to be used.
 */
#ifdef OPENSSL_SYS_WINDOWS
#ifndef OPENSSL_OPT_WINDLL
#if defined(_WINDLL) /* This is used when building OpenSSL to \
                      * indicate that DLL linkage should be used */
#define OPENSSL_OPT_WINDLL
#endif
#endif
#endif

/* ------------------------------- OpenVMS -------------------------------- */
#if defined(__VMS) || defined(VMS)
#if !defined(OPENSSL_SYS_VMS)
#undef OPENSSL_SYS_UNIX
#define OPENSSL_SYS_VMS
#endif
#if defined(__DECC)
#define OPENSSL_SYS_VMS_DECC
#elif defined(__DECCXX)
#define OPENSSL_SYS_VMS_DECC
#define OPENSSL_SYS_VMS_DECCXX
#else
#define OPENSSL_SYS_VMS_NODECC
#endif
#endif

/* -------------------------------- Unix ---------------------------------- */
#ifdef OPENSSL_SYS_UNIX
#if defined(linux) || defined(__linux__) && !defined(OPENSSL_SYS_LINUX)
#define OPENSSL_SYS_LINUX
#endif
#if defined(_AIX) && !defined(OPENSSL_SYS_AIX)
#define OPENSSL_SYS_AIX
#endif
#endif

/* -------------------------------- VOS ----------------------------------- */
#if defined(__VOS__) && !defined(OPENSSL_SYS_VOS)
#define OPENSSL_SYS_VOS
#ifdef __HPPA__
#define OPENSSL_SYS_VOS_HPPA
#endif
#ifdef __IA32__
#define OPENSSL_SYS_VOS_IA32
#endif
#endif

/* ---------------------------- HP NonStop -------------------------------- */
#ifdef __TANDEM
#ifdef _STRING
#include <strings.h>
#endif
#define OPENSSL_USE_BUILD_DATE
#if defined(OPENSSL_THREADS) && defined(_SPT_MODEL_)
#define SPT_THREAD_SIGNAL 1
#define SPT_THREAD_AWARE 1
#includ