diff options
author | chromium@hybridsource.org <chromium@hybridsource.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-28 04:06:43 +0000 |
---|---|---|
committer | chromium@hybridsource.org <chromium@hybridsource.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-28 04:06:43 +0000 |
commit | 1fd5302cf7083ff593667703d144aa84d3cf7e5d (patch) | |
tree | d64d5a1e377638aa696b57d4ba2bb928779752b5 /chrome/app/chrome_exe_main_gtk.cc | |
parent | 8b02f7de252dba372f6f393a2f0130f893af3cb9 (diff) | |
download | chromium_src-1fd5302cf7083ff593667703d144aa84d3cf7e5d.zip chromium_src-1fd5302cf7083ff593667703d144aa84d3cf7e5d.tar.gz chromium_src-1fd5302cf7083ff593667703d144aa84d3cf7e5d.tar.bz2 |
Replace many OS_LINUX ifdefs with OS_POSIX & !OS_MACOSX, since most of them apply to non-linux Unix also. Non-linux Unices tested are the BSDs and Solaris.
Review URL: http://codereview.chromium.org/3556009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_exe_main_gtk.cc')
-rw-r--r-- | chrome/app/chrome_exe_main_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/app/chrome_exe_main_gtk.cc b/chrome/app/chrome_exe_main_gtk.cc index d240fad..0b5f8b9 100644 --- a/chrome/app/chrome_exe_main_gtk.cc +++ b/chrome/app/chrome_exe_main_gtk.cc @@ -18,7 +18,7 @@ extern "C" { int ChromeMain(int argc, const char** argv); -#if defined(OS_LINUX) && defined(USE_TCMALLOC) +#if defined(OS_POSIX) && !defined(OS_MACOSX) && defined(USE_TCMALLOC) int tc_set_new_mode(int mode); #endif } @@ -33,7 +33,7 @@ int main(int argc, const char** argv) { // dependency on TCMalloc. Really, we ought to have our allocator shim code // implement this EnableTerminationOnOutOfMemory() function. Whateverz. This // works for now. -#if defined(OS_LINUX) && defined(USE_TCMALLOC) +#if defined(OS_POSIX) && !defined(OS_MACOSX) && defined(USE_TCMALLOC) // For tcmalloc, we need to tell it to behave like new. tc_set_new_mode(1); #endif |