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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-blob.cc

Issue 372843004: Undefine _POSIX_C_SOURCE before redefining in third_party/harfbuzz-ng/src/hb-blob.cc (again). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 /* 1 /*
2 * Copyright © 2009 Red Hat, Inc. 2 * Copyright © 2009 Red Hat, Inc.
3 * 3 *
4 * This is part of HarfBuzz, a text shaping library. 4 * This is part of HarfBuzz, a text shaping library.
5 * 5 *
6 * Permission is hereby granted, without written agreement and without 6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this 7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the 8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in 9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software. 10 * all copies of this software.
11 * 11 *
12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16 * DAMAGE. 16 * DAMAGE.
17 * 17 *
18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23 * 23 *
24 * Red Hat Author(s): Behdad Esfahbod 24 * Red Hat Author(s): Behdad Esfahbod
25 */ 25 */
26 26
27 /* http://www.oracle.com/technetwork/articles/servers-storage-dev/standardheader files-453865.html */ 27 /* http://www.oracle.com/technetwork/articles/servers-storage-dev/standardheader files-453865.html */
28 #if defined(_POSIX_C_SOURCE)
29 #undef _POSIX_C_SOURCE
30 #endif
28 #define _POSIX_C_SOURCE 199309L 31 #define _POSIX_C_SOURCE 199309L
29 32
30 #include "hb-private.hh" 33 #include "hb-private.hh"
31 34
32 #include "hb-object-private.hh" 35 #include "hb-object-private.hh"
33 36
34 #ifdef HAVE_SYS_MMAN_H 37 #ifdef HAVE_SYS_MMAN_H
35 #ifdef HAVE_UNISTD_H 38 #ifdef HAVE_UNISTD_H
36 #include <unistd.h> 39 #include <unistd.h>
37 #endif /* HAVE_UNISTD_H */ 40 #endif /* HAVE_UNISTD_H */
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 468
466 memcpy (new_data, blob->data, blob->length); 469 memcpy (new_data, blob->data, blob->length);
467 _hb_blob_destroy_user_data (blob); 470 _hb_blob_destroy_user_data (blob);
468 blob->mode = HB_MEMORY_MODE_WRITABLE; 471 blob->mode = HB_MEMORY_MODE_WRITABLE;
469 blob->data = new_data; 472 blob->data = new_data;
470 blob->user_data = new_data; 473 blob->user_data = new_data;
471 blob->destroy = free; 474 blob->destroy = free;
472 475
473 return true; 476 return true;
474 } 477 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698