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

Side by Side Diff: src/libFLAC/stream_decoder.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 | « README.chromium ('k') | src/libFLAC/stream_encoder.c » ('j') | 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 <stdio.h> 44 #include <stdio.h>
45 #include <stdlib.h> /* for malloc() */ 45 #include <stdlib.h> /* for malloc() */
46 #include <string.h> /* for memset/memcpy() */ 46 #include <string.h> /* for memset/memcpy() */
47 #include <sys/stat.h> /* for stat() */ 47 #include <sys/stat.h> /* for stat() */
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 "share/alloc.h" 59 #include "share/alloc.h"
60 #include "protected/stream_decoder.h" 60 #include "protected/stream_decoder.h"
61 #include "private/bitreader.h" 61 #include "private/bitreader.h"
62 #include "private/bitmath.h" 62 #include "private/bitmath.h"
63 #include "private/cpu.h" 63 #include "private/cpu.h"
(...skipping 3317 matching lines...) Expand 10 before | Expand all | Expand 10 after
3381 return FLAC__STREAM_DECODER_LENGTH_STATUS_OK; 3381 return FLAC__STREAM_DECODER_LENGTH_STATUS_OK;
3382 } 3382 }
3383 } 3383 }
3384 3384
3385 FLAC__bool file_eof_callback_(const FLAC__StreamDecoder *decoder, void *client_d ata) 3385 FLAC__bool file_eof_callback_(const FLAC__StreamDecoder *decoder, void *client_d ata)
3386 { 3386 {
3387 (void)client_data; 3387 (void)client_data;
3388 3388
3389 return feof(decoder->private_->file)? true : false; 3389 return feof(decoder->private_->file)? true : false;
3390 } 3390 }
OLDNEW
« no previous file with comments | « README.chromium ('k') | src/libFLAC/stream_encoder.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698