Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: src/libFLAC/stream_encoder.c

Issue 23988003: Fix flac compilation on VS2013 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/flac.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/libFLAC/stream_decoder.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/libFLAC/stream_decoder.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698