| OLD | NEW |
| 1 /* libFLAC - Free Lossless Audio Codec library | 1 /* libFLAC - Free Lossless Audio Codec library |
| 2 * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson | 2 * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * - Redistributions of source code must retain the above copyright | 8 * - Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * | 10 * |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #endif | 43 #endif |
| 44 #include <limits.h> | 44 #include <limits.h> |
| 45 #include <stdio.h> | 45 #include <stdio.h> |
| 46 #include <stdlib.h> /* for malloc() */ | 46 #include <stdlib.h> /* for malloc() */ |
| 47 #include <string.h> /* for memcpy() */ | 47 #include <string.h> /* for memcpy() */ |
| 48 #include <sys/types.h> /* for off_t */ | 48 #include <sys/types.h> /* for off_t */ |
| 49 #if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ | 49 #if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ |
| 50 #if _MSC_VER <= 1600 || defined __BORLANDC__ /* @@@ [2G limit] */ | 50 #if _MSC_VER <= 1600 || defined __BORLANDC__ /* @@@ [2G limit] */ |
| 51 #define fseeko fseek | 51 #define fseeko fseek |
| 52 #define ftello ftell | 52 #define ftello ftell |
| 53 #elif _MSC_VER <= 1700 | 53 #else |
| 54 #define fseeko _fseeki64 | 54 #define fseeko _fseeki64 |
| 55 #define ftello _ftelli64 | 55 #define ftello _ftelli64 |
| 56 #endif | 56 #endif |
| 57 #endif | 57 #endif |
| 58 #include "FLAC/assert.h" | 58 #include "FLAC/assert.h" |
| 59 #include "FLAC/stream_decoder.h" | 59 #include "FLAC/stream_decoder.h" |
| 60 #include "share/alloc.h" | 60 #include "share/alloc.h" |
| 61 #include "protected/stream_encoder.h" | 61 #include "protected/stream_encoder.h" |
| 62 #include "private/bitwriter.h" | 62 #include "private/bitwriter.h" |
| 63 #include "private/bitmath.h" | 63 #include "private/bitmath.h" |
| (...skipping 4289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4353 _setmode(_fileno(stdout), _O_BINARY); | 4353 _setmode(_fileno(stdout), _O_BINARY); |
| 4354 #elif defined __CYGWIN__ | 4354 #elif defined __CYGWIN__ |
| 4355 /* almost certainly not needed for any modern Cygwin, but let's be safe.
.. */ | 4355 /* almost certainly not needed for any modern Cygwin, but let's be safe.
.. */ |
| 4356 setmode(_fileno(stdout), _O_BINARY); | 4356 setmode(_fileno(stdout), _O_BINARY); |
| 4357 #elif defined __EMX__ | 4357 #elif defined __EMX__ |
| 4358 setmode(fileno(stdout), O_BINARY); | 4358 setmode(fileno(stdout), O_BINARY); |
| 4359 #endif | 4359 #endif |
| 4360 | 4360 |
| 4361 return stdout; | 4361 return stdout; |
| 4362 } | 4362 } |
| OLD | NEW |