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

Side by Side Diff: third_party/tcmalloc/chromium/src/windows/port.h

Issue 15100010: GTTF: Enable tcmalloc's debugallocation on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/tcmalloc/chromium/src/debugallocation.cc ('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 /* Copyright (c) 2007, Google Inc. 1 /* Copyright (c) 2007, Google Inc.
2 * All rights reserved. 2 * All rights reserved.
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 /* You should never include this file directly, but always include it 43 /* You should never include this file directly, but always include it
44 from either config.h (MSVC) or mingw.h (MinGW/msys). */ 44 from either config.h (MSVC) or mingw.h (MinGW/msys). */
45 #if !defined(GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_) && \ 45 #if !defined(GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_) && \
46 !defined(GOOGLE_PERFTOOLS_WINDOWS_MINGW_H_) 46 !defined(GOOGLE_PERFTOOLS_WINDOWS_MINGW_H_)
47 # error "port.h should only be included from config.h or mingw.h" 47 # error "port.h should only be included from config.h or mingw.h"
48 #endif 48 #endif
49 49
50 #ifdef _WIN32 50 #ifdef _WIN32
51 51
52 #ifndef NOMINMAX
53 #define NOMINMAX /* Do not define min and max macros. */
54 #endif
52 #ifndef WIN32_LEAN_AND_MEAN 55 #ifndef WIN32_LEAN_AND_MEAN
53 #define WIN32_LEAN_AND_MEAN /* We always want minimal includes */ 56 #define WIN32_LEAN_AND_MEAN /* We always want minimal includes */
54 #endif 57 #endif
55 #include <windows.h> 58 #include <windows.h>
56 #include <io.h> /* because we so often use open/close/etc */ 59 #include <io.h> /* because we so often use open/close/etc */
57 #include <direct.h> /* for _getcwd */ 60 #include <direct.h> /* for _getcwd */
58 #include <process.h> /* for _getpid */ 61 #include <process.h> /* for _getpid */
59 #include <limits.h> /* for PATH_MAX */ 62 #include <limits.h> /* for PATH_MAX */
60 #include <stdarg.h> /* for va_list */ 63 #include <stdarg.h> /* for va_list */
61 #include <stdio.h> /* need this to override stdio's (v)snprintf */ 64 #include <stdio.h> /* need this to override stdio's (v)snprintf */
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 */ 468 */
466 #define GOOGLE_MAYBE_THREADS_H_ 1 469 #define GOOGLE_MAYBE_THREADS_H_ 1
467 470
468 471
469 #endif /* _WIN32 */ 472 #endif /* _WIN32 */
470 473
471 #undef inline 474 #undef inline
472 #undef EXTERN_C 475 #undef EXTERN_C
473 476
474 #endif /* GOOGLE_BASE_WINDOWS_H_ */ 477 #endif /* GOOGLE_BASE_WINDOWS_H_ */
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/debugallocation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698