diff options
author | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
commit | 959831f4ef5a3e797f576c3de08cd65032c997ad (patch) | |
tree | e7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/jpeglib/jinclude.h | |
parent | Add info about changes to Irrlicht. (diff) | |
download | SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2 SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz |
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/jpeglib/jinclude.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/jpeglib/jinclude.h | 182 |
1 files changed, 91 insertions, 91 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/jpeglib/jinclude.h b/libraries/irrlicht-1.8/source/Irrlicht/jpeglib/jinclude.h index 5ff60fe..0a4f151 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/jpeglib/jinclude.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/jpeglib/jinclude.h | |||
@@ -1,91 +1,91 @@ | |||
1 | /* | 1 | /* |
2 | * jinclude.h | 2 | * jinclude.h |
3 | * | 3 | * |
4 | * Copyright (C) 1991-1994, Thomas G. Lane. | 4 | * Copyright (C) 1991-1994, Thomas G. Lane. |
5 | * This file is part of the Independent JPEG Group's software. | 5 | * This file is part of the Independent JPEG Group's software. |
6 | * For conditions of distribution and use, see the accompanying README file. | 6 | * For conditions of distribution and use, see the accompanying README file. |
7 | * | 7 | * |
8 | * This file exists to provide a single place to fix any problems with | 8 | * This file exists to provide a single place to fix any problems with |
9 | * including the wrong system include files. (Common problems are taken | 9 | * including the wrong system include files. (Common problems are taken |
10 | * care of by the standard jconfig symbols, but on really weird systems | 10 | * care of by the standard jconfig symbols, but on really weird systems |
11 | * you may have to edit this file.) | 11 | * you may have to edit this file.) |
12 | * | 12 | * |
13 | * NOTE: this file is NOT intended to be included by applications using the | 13 | * NOTE: this file is NOT intended to be included by applications using the |
14 | * JPEG library. Most applications need only include jpeglib.h. | 14 | * JPEG library. Most applications need only include jpeglib.h. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | 17 | ||
18 | /* Include auto-config file to find out which system include files we need. */ | 18 | /* Include auto-config file to find out which system include files we need. */ |
19 | 19 | ||
20 | #include "jconfig.h" /* auto configuration options */ | 20 | #include "jconfig.h" /* auto configuration options */ |
21 | #define JCONFIG_INCLUDED /* so that jpeglib.h doesn't do it again */ | 21 | #define JCONFIG_INCLUDED /* so that jpeglib.h doesn't do it again */ |
22 | 22 | ||
23 | /* | 23 | /* |
24 | * We need the NULL macro and size_t typedef. | 24 | * We need the NULL macro and size_t typedef. |
25 | * On an ANSI-conforming system it is sufficient to include <stddef.h>. | 25 | * On an ANSI-conforming system it is sufficient to include <stddef.h>. |
26 | * Otherwise, we get them from <stdlib.h> or <stdio.h>; we may have to | 26 | * Otherwise, we get them from <stdlib.h> or <stdio.h>; we may have to |
27 | * pull in <sys/types.h> as well. | 27 | * pull in <sys/types.h> as well. |
28 | * Note that the core JPEG library does not require <stdio.h>; | 28 | * Note that the core JPEG library does not require <stdio.h>; |
29 | * only the default error handler and data source/destination modules do. | 29 | * only the default error handler and data source/destination modules do. |
30 | * But we must pull it in because of the references to FILE in jpeglib.h. | 30 | * But we must pull it in because of the references to FILE in jpeglib.h. |
31 | * You can remove those references if you want to compile without <stdio.h>. | 31 | * You can remove those references if you want to compile without <stdio.h>. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #ifdef HAVE_STDDEF_H | 34 | #ifdef HAVE_STDDEF_H |
35 | #include <stddef.h> | 35 | #include <stddef.h> |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #ifdef HAVE_STDLIB_H | 38 | #ifdef HAVE_STDLIB_H |
39 | #include <stdlib.h> | 39 | #include <stdlib.h> |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #ifdef NEED_SYS_TYPES_H | 42 | #ifdef NEED_SYS_TYPES_H |
43 | #include <sys/types.h> | 43 | #include <sys/types.h> |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #include <stdio.h> | 46 | #include <stdio.h> |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * We need memory copying and zeroing functions, plus strncpy(). | 49 | * We need memory copying and zeroing functions, plus strncpy(). |
50 | * ANSI and System V implementations declare these in <string.h>. | 50 | * ANSI and System V implementations declare these in <string.h>. |
51 | * BSD doesn't have the mem() functions, but it does have bcopy()/bzero(). | 51 | * BSD doesn't have the mem() functions, but it does have bcopy()/bzero(). |
52 | * Some systems may declare memset and memcpy in <memory.h>. | 52 | * Some systems may declare memset and memcpy in <memory.h>. |
53 | * | 53 | * |
54 | * NOTE: we assume the size parameters to these functions are of type size_t. | 54 | * NOTE: we assume the size parameters to these functions are of type size_t. |
55 | * Change the casts in these macros if not! | 55 | * Change the casts in these macros if not! |
56 | */ | 56 | */ |
57 | 57 | ||
58 | #ifdef NEED_BSD_STRINGS | 58 | #ifdef NEED_BSD_STRINGS |
59 | 59 | ||
60 | #include <strings.h> | 60 | #include <strings.h> |
61 | #define MEMZERO(target,size) bzero((void *)(target), (size_t)(size)) | 61 | #define MEMZERO(target,size) bzero((void *)(target), (size_t)(size)) |
62 | #define MEMCOPY(dest,src,size) bcopy((const void *)(src), (void *)(dest), (size_t)(size)) | 62 | #define MEMCOPY(dest,src,size) bcopy((const void *)(src), (void *)(dest), (size_t)(size)) |
63 | 63 | ||
64 | #else /* not BSD, assume ANSI/SysV string lib */ | 64 | #else /* not BSD, assume ANSI/SysV string lib */ |
65 | 65 | ||
66 | #include <string.h> | 66 | #include <string.h> |
67 | #define MEMZERO(target,size) memset((void *)(target), 0, (size_t)(size)) | 67 | #define MEMZERO(target,size) memset((void *)(target), 0, (size_t)(size)) |
68 | #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size)) | 68 | #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size)) |
69 | 69 | ||
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | /* | 72 | /* |
73 | * In ANSI C, and indeed any rational implementation, size_t is also the | 73 | * In ANSI C, and indeed any rational implementation, size_t is also the |
74 | * type returned by sizeof(). However, it seems there are some irrational | 74 | * type returned by sizeof(). However, it seems there are some irrational |
75 | * implementations out there, in which sizeof() returns an int even though | 75 | * implementations out there, in which sizeof() returns an int even though |
76 | * size_t is defined as long or unsigned long. To ensure consistent results | 76 | * size_t is defined as long or unsigned long. To ensure consistent results |
77 | * we always use this SIZEOF() macro in place of using sizeof() directly. | 77 | * we always use this SIZEOF() macro in place of using sizeof() directly. |
78 | */ | 78 | */ |
79 | 79 | ||
80 | #define SIZEOF(object) ((size_t) sizeof(object)) | 80 | #define SIZEOF(object) ((size_t) sizeof(object)) |
81 | 81 | ||
82 | /* | 82 | /* |
83 | * The modules that use fread() and fwrite() always invoke them through | 83 | * The modules that use fread() and fwrite() always invoke them through |
84 | * these macros. On some systems you may need to twiddle the argument casts. | 84 | * these macros. On some systems you may need to twiddle the argument casts. |
85 | * CAUTION: argument order is different from underlying functions! | 85 | * CAUTION: argument order is different from underlying functions! |
86 | */ | 86 | */ |
87 | 87 | ||
88 | #define JFREAD(file,buf,sizeofbuf) \ | 88 | #define JFREAD(file,buf,sizeofbuf) \ |
89 | ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file))) | 89 | ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file))) |
90 | #define JFWRITE(file,buf,sizeofbuf) \ | 90 | #define JFWRITE(file,buf,sizeofbuf) \ |
91 | ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file))) | 91 | ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file))) |