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/md5.c

Issue 2866623002: Include limits.h on Android to work around NDK deficiency (Closed)
Patch Set: Created 3 years, 7 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 | « include/share/compat.h ('k') | src/libFLAC/memory.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 #ifdef HAVE_CONFIG_H 1 #ifdef HAVE_CONFIG_H
2 # include <config.h> 2 # include <config.h>
3 #endif 3 #endif
4 4
5 #include <stdlib.h> /* for malloc() */ 5 #include <stdlib.h> /* for malloc() */
6 #include <string.h> /* for memcpy() */ 6 #include <string.h> /* for memcpy() */
7 7
8 #include "private/md5.h" 8 #include "private/md5.h"
9 #include "share/alloc.h" 9 #include "share/alloc.h"
10 #include "share/compat.h"
10 #include "share/endswap.h" 11 #include "share/endswap.h"
11 12
12 /* 13 /*
13 * This code implements the MD5 message-digest algorithm. 14 * This code implements the MD5 message-digest algorithm.
14 * The algorithm is due to Ron Rivest. This code was 15 * The algorithm is due to Ron Rivest. This code was
15 * written by Colin Plumb in 1993, no copyright is claimed. 16 * written by Colin Plumb in 1993, no copyright is claimed.
16 * This code is in the public domain; do with it what you wish. 17 * This code is in the public domain; do with it what you wish.
17 * 18 *
18 * Equivalent code is available from RSA Data Security, Inc. 19 * Equivalent code is available from RSA Data Security, Inc.
19 * This code has been tested against that, and is equivalent, 20 * This code has been tested against that, and is equivalent,
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 ctx->internal_buf.p8= tmp; 510 ctx->internal_buf.p8= tmp;
510 ctx->capacity = bytes_needed; 511 ctx->capacity = bytes_needed;
511 } 512 }
512 513
513 format_input_(&ctx->internal_buf, signal, channels, samples, bytes_per_s ample); 514 format_input_(&ctx->internal_buf, signal, channels, samples, bytes_per_s ample);
514 515
515 FLAC__MD5Update(ctx, ctx->internal_buf.p8, bytes_needed); 516 FLAC__MD5Update(ctx, ctx->internal_buf.p8, bytes_needed);
516 517
517 return true; 518 return true;
518 } 519 }
OLDNEW
« no previous file with comments | « include/share/compat.h ('k') | src/libFLAC/memory.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698