Linux32Specific.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. // Description : Specific to Linux declarations, inline functions etc.
  9. #ifndef CRYINCLUDE_CRYCOMMON_LINUX32SPECIFIC_H
  10. #define CRYINCLUDE_CRYCOMMON_LINUX32SPECIFIC_H
  11. #pragma once
  12. #define _CPU_X86
  13. //#define _CPU_SSE
  14. //////////////////////////////////////////////////////////////////////////
  15. // Standard includes.
  16. //////////////////////////////////////////////////////////////////////////
  17. #include <malloc.h>
  18. //#include <winbase.h>
  19. #include <stdint.h>
  20. #include <sys/dir.h>
  21. #include <sys/io.h>
  22. #include <fcntl.h>
  23. #include <sys/types.h>
  24. #include <sys/stat.h>
  25. #include <time.h>
  26. #include <ctype.h>
  27. //////////////////////////////////////////////////////////////////////////
  28. //////////////////////////////////////////////////////////////////////////
  29. // Define platform independent types.
  30. //////////////////////////////////////////////////////////////////////////
  31. #include "BaseTypes.h"
  32. typedef signed long long INT64;
  33. typedef double real;
  34. typedef unsigned long DWORD;
  35. typedef unsigned long* LPDWORD;
  36. typedef DWORD DWORD_PTR;
  37. typedef int INT_PTR, * PINT_PTR;
  38. typedef unsigned int UINT_PTR, * PUINT_PTR;
  39. typedef char* LPSTR, * PSTR;
  40. typedef long LONG_PTR, * PLONG_PTR, * PLONG;
  41. typedef unsigned long ULONG_PTR, * PULONG_PTR;
  42. typedef unsigned char BYTE;
  43. typedef unsigned short WORD;
  44. typedef void* HWND;
  45. typedef UINT_PTR WPARAM;
  46. typedef LONG_PTR LPARAM;
  47. typedef LONG_PTR LRESULT;
  48. #define PLARGE_INTEGER LARGE_INTEGER *
  49. typedef const char* LPCSTR, * PCSTR;
  50. typedef long long LONGLONG;
  51. typedef ULONG_PTR SIZE_T;
  52. typedef unsigned char byte;
  53. #define __int64 long long
  54. #define ILINE __forceinline
  55. #define _A_RDONLY (0x01)
  56. #define _A_SUBDIR (0x10)
  57. //////////////////////////////////////////////////////////////////////////
  58. // Win32 FileAttributes.
  59. //////////////////////////////////////////////////////////////////////////
  60. #define FILE_ATTRIBUTE_READONLY 0x00000001
  61. #define FILE_ATTRIBUTE_HIDDEN 0x00000002
  62. #define FILE_ATTRIBUTE_SYSTEM 0x00000004
  63. #define FILE_ATTRIBUTE_DIRECTORY 0x00000010
  64. #define FILE_ATTRIBUTE_ARCHIVE 0x00000020
  65. #define FILE_ATTRIBUTE_DEVICE 0x00000040
  66. #define FILE_ATTRIBUTE_NORMAL 0x00000080
  67. #define FILE_ATTRIBUTE_TEMPORARY 0x00000100
  68. #define FILE_ATTRIBUTE_SPARSE_FILE 0x00000200
  69. #define FILE_ATTRIBUTE_REPARSE_POINT 0x00000400
  70. #define FILE_ATTRIBUTE_COMPRESSED 0x00000800
  71. #define FILE_ATTRIBUTE_OFFLINE 0x00001000
  72. #define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000
  73. #define FILE_ATTRIBUTE_ENCRYPTED 0x00004000
  74. #define INVALID_FILE_ATTRIBUTES (-1)
  75. #include "LinuxSpecific.h"
  76. #define TARGET_DEFAULT_ALIGN (0x4U)
  77. #endif // CRYINCLUDE_CRYCOMMON_LINUX32SPECIFIC_H