diff options
author | maf@chromium.org <maf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-30 00:10:16 +0000 |
---|---|---|
committer | maf@chromium.org <maf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-30 00:10:16 +0000 |
commit | fd132701cc19d57d156b8ff37300a9347117fd3b (patch) | |
tree | 2f2196fc12668296bee1147ee7e3035cc8756461 /base/safe_strerror_posix.h | |
parent | 26f70e1bc50dfe71be2fd62b5dce41e081ac8743 (diff) | |
download | chromium_src-fd132701cc19d57d156b8ff37300a9347117fd3b.zip chromium_src-fd132701cc19d57d156b8ff37300a9347117fd3b.tar.gz chromium_src-fd132701cc19d57d156b8ff37300a9347117fd3b.tar.bz2 |
Revert 83629 - linux components: expose more BASE_API used by Chrome itself
Review URL: http://codereview.chromium.org/6902177
TBR=evan@chromium.org
Review URL: http://codereview.chromium.org/6903159
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/safe_strerror_posix.h')
-rw-r--r-- | base/safe_strerror_posix.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/base/safe_strerror_posix.h b/base/safe_strerror_posix.h index e72c836..03c18c8 100644 --- a/base/safe_strerror_posix.h +++ b/base/safe_strerror_posix.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -8,8 +8,6 @@ #include <string> -#include "base/base_api.h" - // BEFORE using anything from this file, first look at PLOG and friends in // logging.h and use them instead if applicable. // @@ -26,7 +24,7 @@ // result is always null-terminated. The value of errno is never changed. // // Use this instead of strerror_r(). -BASE_API void safe_strerror_r(int err, char *buf, size_t len); +void safe_strerror_r(int err, char *buf, size_t len); // Calls safe_strerror_r with a buffer of suitable size and returns the result // in a C++ string. @@ -34,6 +32,6 @@ BASE_API void safe_strerror_r(int err, char *buf, size_t len); // Use this instead of strerror(). Note though that safe_strerror_r will be // more robust in the case of heap corruption errors, since it doesn't need to // allocate a string. -BASE_API std::string safe_strerror(int err); +std::string safe_strerror(int err); #endif // BASE_SAFE_STRERROR_POSIX_H_ |