mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
040cb17370
# Conflicts: # CMakeLists.txt # libraries/glslang/OGLCompilersDLL/CMakeLists.txt # libraries/glslang/OGLCompilersDLL/InitializeDll.cpp # libraries/glslang/OGLCompilersDLL/InitializeDll.h # libraries/glslang/glslang/CMakeLists.txt # libraries/glslang/glslang/GenericCodeGen/CodeGen.cpp # libraries/glslang/glslang/GenericCodeGen/Link.cpp # libraries/glslang/glslang/Include/BaseTypes.h # libraries/glslang/glslang/Include/Common.h # libraries/glslang/glslang/Include/ConstantUnion.h # libraries/glslang/glslang/Include/InfoSink.h # libraries/glslang/glslang/Include/InitializeGlobals.h # libraries/glslang/glslang/Include/PoolAlloc.h # libraries/glslang/glslang/Include/ResourceLimits.h # libraries/glslang/glslang/Include/ShHandle.h # libraries/glslang/glslang/Include/Types.h # libraries/glslang/glslang/Include/arrays.h # libraries/glslang/glslang/Include/intermediate.h # libraries/glslang/glslang/Include/revision.h # libraries/glslang/glslang/Include/revision.template # libraries/glslang/glslang/MachineIndependent/Constant.cpp # libraries/glslang/glslang/MachineIndependent/InfoSink.cpp # libraries/glslang/glslang/MachineIndependent/Initialize.cpp # libraries/glslang/glslang/MachineIndependent/Initialize.h # libraries/glslang/glslang/MachineIndependent/IntermTraverse.cpp # libraries/glslang/glslang/MachineIndependent/Intermediate.cpp # libraries/glslang/glslang/MachineIndependent/LiveTraverser.h # libraries/glslang/glslang/MachineIndependent/ParseContextBase.cpp # libraries/glslang/glslang/MachineIndependent/ParseHelper.cpp # libraries/glslang/glslang/MachineIndependent/ParseHelper.h # libraries/glslang/glslang/MachineIndependent/PoolAlloc.cpp # libraries/glslang/glslang/MachineIndependent/RemoveTree.cpp # libraries/glslang/glslang/MachineIndependent/RemoveTree.h # libraries/glslang/glslang/MachineIndependent/Scan.cpp # libraries/glslang/glslang/MachineIndependent/Scan.h # libraries/glslang/glslang/MachineIndependent/ScanContext.h # libraries/glslang/glslang/MachineIndependent/ShaderLang.cpp # libraries/glslang/glslang/MachineIndependent/SymbolTable.cpp # libraries/glslang/glslang/MachineIndependent/SymbolTable.h # libraries/glslang/glslang/MachineIndependent/Versions.cpp # libraries/glslang/glslang/MachineIndependent/Versions.h # libraries/glslang/glslang/MachineIndependent/attribute.cpp # libraries/glslang/glslang/MachineIndependent/attribute.h # libraries/glslang/glslang/MachineIndependent/gl_types.h # libraries/glslang/glslang/MachineIndependent/glslang.y # libraries/glslang/glslang/MachineIndependent/glslang_tab.cpp # libraries/glslang/glslang/MachineIndependent/glslang_tab.cpp.h # libraries/glslang/glslang/MachineIndependent/intermOut.cpp # libraries/glslang/glslang/MachineIndependent/iomapper.cpp # libraries/glslang/glslang/MachineIndependent/iomapper.h # libraries/glslang/glslang/MachineIndependent/limits.cpp # libraries/glslang/glslang/MachineIndependent/linkValidate.cpp # libraries/glslang/glslang/MachineIndependent/localintermediate.h # libraries/glslang/glslang/MachineIndependent/parseConst.cpp # libraries/glslang/glslang/MachineIndependent/parseVersions.h # libraries/glslang/glslang/MachineIndependent/pch.cpp # libraries/glslang/glslang/MachineIndependent/pch.h # libraries/glslang/glslang/MachineIndependent/preprocessor/Pp.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpAtom.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpContext.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpContext.h # libraries/glslang/glslang/MachineIndependent/preprocessor/PpScanner.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpTokens.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpTokens.h # libraries/glslang/glslang/MachineIndependent/propagateNoContraction.cpp # libraries/glslang/glslang/MachineIndependent/propagateNoContraction.h # libraries/glslang/glslang/MachineIndependent/reflection.cpp # libraries/glslang/glslang/MachineIndependent/reflection.h # libraries/glslang/glslang/OSDependent/Unix/CMakeLists.txt # libraries/glslang/glslang/OSDependent/Unix/ossource.cpp # libraries/glslang/glslang/OSDependent/Windows/CMakeLists.txt # libraries/glslang/glslang/OSDependent/Windows/main.cpp # libraries/glslang/glslang/OSDependent/Windows/ossource.cpp # libraries/glslang/glslang/OSDependent/osinclude.h # libraries/glslang/glslang/Public/ShaderLang.h # libraries/glslang/glslang/updateGrammar # libraries/glslang/spirv/CMakeLists.txt # libraries/glslang/spirv/GLSL.ext.AMD.h # libraries/glslang/spirv/GLSL.ext.EXT.h # libraries/glslang/spirv/GLSL.ext.KHR.h # libraries/glslang/spirv/GLSL.ext.NV.h # libraries/glslang/spirv/GLSL.std.450.h # libraries/glslang/spirv/GlslangToSpv.cpp # libraries/glslang/spirv/GlslangToSpv.h # libraries/glslang/spirv/InReadableOrder.cpp # libraries/glslang/spirv/Logger.cpp # libraries/glslang/spirv/Logger.h # libraries/glslang/spirv/SPVRemapper.cpp # libraries/glslang/spirv/SPVRemapper.h # libraries/glslang/spirv/SpvBuilder.cpp # libraries/glslang/spirv/SpvBuilder.h # libraries/glslang/spirv/SpvPostProcess.cpp # libraries/glslang/spirv/SpvTools.cpp # libraries/glslang/spirv/SpvTools.h # libraries/glslang/spirv/bitutils.h # libraries/glslang/spirv/disassemble.cpp # libraries/glslang/spirv/disassemble.h # libraries/glslang/spirv/doc.cpp # libraries/glslang/spirv/doc.h # libraries/glslang/spirv/hex_float.h # libraries/glslang/spirv/spirv.hpp # libraries/glslang/spirv/spvIR.h # src/CMakeLists.txt
97 lines
3.4 KiB
C
97 lines
3.4 KiB
C
/*
|
|
* jinclude.h
|
|
*
|
|
* Copyright (C) 1991-1994, Thomas G. Lane.
|
|
* Modified 2017 by Guido Vollbeding.
|
|
* This file is part of the Independent JPEG Group's software.
|
|
* For conditions of distribution and use, see the accompanying README file.
|
|
*
|
|
* This file exists to provide a single place to fix any problems with
|
|
* including the wrong system include files. (Common problems are taken
|
|
* care of by the standard jconfig symbols, but on really weird systems
|
|
* you may have to edit this file.)
|
|
*
|
|
* NOTE: this file is NOT intended to be included by applications using the
|
|
* JPEG library. Most applications need only include jpeglib.h.
|
|
*/
|
|
|
|
|
|
/* Include auto-config file to find out which system include files we need. */
|
|
|
|
#include "jconfig.h" /* auto configuration options */
|
|
#define JCONFIG_INCLUDED /* so that jpeglib.h doesn't do it again */
|
|
|
|
/*
|
|
* We need the NULL macro and size_t typedef.
|
|
* On an ANSI-conforming system it is sufficient to include <stddef.h>.
|
|
* Otherwise, we get them from <stdlib.h> or <stdio.h>; we may have to
|
|
* pull in <sys/types.h> as well.
|
|
* Note that the core JPEG library does not require <stdio.h>;
|
|
* only the default error handler and data source/destination modules do.
|
|
* But we must pull it in because of the references to FILE in jpeglib.h.
|
|
* You can remove those references if you want to compile without <stdio.h>.
|
|
*/
|
|
|
|
#ifdef HAVE_STDDEF_H
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
|
|
#ifdef NEED_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
/*
|
|
* We need memory copying and zeroing functions, plus strncpy().
|
|
* ANSI and System V implementations declare these in <string.h>.
|
|
* BSD doesn't have the mem() functions, but it does have bcopy()/bzero().
|
|
* Some systems may declare memset and memcpy in <memory.h>.
|
|
*
|
|
* NOTE: we assume the size parameters to these functions are of type size_t.
|
|
* Change the casts in these macros if not!
|
|
*/
|
|
|
|
#ifdef NEED_BSD_STRINGS
|
|
|
|
#include <strings.h>
|
|
#define MEMZERO(target,size) bzero((void *)(target), (size_t)(size))
|
|
#define MEMCOPY(dest,src,size) bcopy((const void *)(src), (void *)(dest), (size_t)(size))
|
|
|
|
#else /* not BSD, assume ANSI/SysV string lib */
|
|
|
|
#include <string.h>
|
|
#define MEMZERO(target,size) memset((void *)(target), 0, (size_t)(size))
|
|
#define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size))
|
|
|
|
#endif
|
|
|
|
/*
|
|
* In ANSI C, and indeed any rational implementation, size_t is also the
|
|
* type returned by sizeof(). However, it seems there are some irrational
|
|
* implementations out there, in which sizeof() returns an int even though
|
|
* size_t is defined as long or unsigned long. To ensure consistent results
|
|
* we always use this SIZEOF() macro in place of using sizeof() directly.
|
|
*/
|
|
|
|
#define SIZEOF(object) ((size_t) sizeof(object))
|
|
|
|
/*
|
|
* The modules that use fread() and fwrite() always invoke them through
|
|
* these macros. On some systems you may need to twiddle the argument casts.
|
|
* CAUTION: argument order is different from underlying functions!
|
|
*
|
|
* Furthermore, macros are provided for fflush() and ferror() in order
|
|
* to facilitate adaption by applications using an own FILE class.
|
|
*/
|
|
|
|
#define JFREAD(file,buf,sizeofbuf) \
|
|
((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
|
|
#define JFWRITE(file,buf,sizeofbuf) \
|
|
((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
|
|
#define JFFLUSH(file) fflush(file)
|
|
#define JFERROR(file) ferror(file)
|