Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-04 10:15:44

0001 /*
0002   Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
0003   dedicated to making software imaging solutions freely available.
0004 
0005   You may not use this file except in compliance with the License.  You may
0006   obtain a copy of the License at
0007 
0008     https://imagemagick.org/script/license.php
0009 
0010   Unless required by applicable law or agreed to in writing, software
0011   distributed under the License is distributed on an "AS IS" BASIS,
0012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013   See the License for the specific language governing permissions and
0014   limitations under the License.
0015 
0016   MagickCore Windows NT utility methods.
0017 */
0018 #ifndef MAGICKCORE_NT_BASE_H
0019 #define MAGICKCORE_NT_BASE_H
0020 
0021 #include "MagickCore/exception.h"
0022 #include "MagickCore/geometry.h"
0023 
0024 #if defined(__cplusplus) || defined(c_plusplus)
0025 extern "C" {
0026 #endif
0027 
0028 #if defined(MAGICKCORE_WINDOWS_SUPPORT)
0029 
0030 #define WIN32_LEAN_AND_MEAN
0031 #define VC_EXTRALEAN
0032 #if !defined(_CRT_SECURE_NO_DEPRECATE)
0033 #  define _CRT_SECURE_NO_DEPRECATE  1
0034 #endif
0035 #include <windows.h>
0036 #include <wchar.h>
0037 #include <winuser.h>
0038 #include <wingdi.h>
0039 #include <io.h>
0040 #include <process.h>
0041 #include <errno.h>
0042 #include <malloc.h>
0043 #include <sys/utime.h>
0044 #if defined(_DEBUG) && !defined(__MINGW32__)
0045 #include <crtdbg.h>
0046 #endif
0047 
0048 #define PROT_READ  0x01
0049 #define PROT_WRITE  0x02
0050 #define MAP_SHARED  0x01
0051 #define MAP_PRIVATE  0x02
0052 #define MAP_ANONYMOUS  0x20
0053 #define F_OK 0
0054 #define R_OK 4
0055 #define W_OK 2
0056 #define RW_OK 6
0057 #define _SC_PAGE_SIZE 1
0058 #define _SC_PHYS_PAGES 2
0059 #define _SC_OPEN_MAX 3
0060 #ifdef _WIN64
0061 #  if !defined(SSIZE_MAX)
0062 #    define SSIZE_MAX LLONG_MAX
0063 #  endif
0064 #else
0065 #  if !defined(SSIZE_MAX)
0066 #    define SSIZE_MAX LONG_MAX
0067 #  endif
0068 #endif
0069 #ifndef S_ISCHR
0070 #  define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
0071 #endif
0072 
0073 #if defined(_MSC_VER)
0074 # if !defined(MAGICKCORE_MSC_VER)
0075 #   if (_MSC_VER >= 1930)
0076 #     define MAGICKCORE_MSC_VER 2022
0077 #   elif (_MSC_VER >= 1920)
0078 #     define MAGICKCORE_MSC_VER 2019
0079 #   elif (_MSC_VER >= 1910)
0080 #     define MAGICKCORE_MSC_VER 2017
0081 #   endif
0082 # endif
0083 #endif
0084 
0085 typedef struct _GhostInfo
0086   GhostInfo_;
0087 
0088 extern MagickExport char
0089   **NTArgvToUTF8(const int argc,wchar_t **);
0090 
0091 extern MagickExport const GhostInfo_
0092   *NTGhostscriptDLLVectors(void);
0093 
0094 extern MagickExport void
0095   NTErrorHandler(const ExceptionType,const char *,const char *),
0096   NTGhostscriptUnLoadDLL(void),
0097   NTWarningHandler(const ExceptionType,const char *,const char *);
0098 
0099 #endif
0100 
0101 #if defined(__cplusplus) || defined(c_plusplus)
0102 }
0103 #endif
0104 
0105 #endif