summaryrefslogtreecommitdiffstats
path: root/base/safe_strerror_posix.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-02 17:54:14 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-02 17:54:14 +0000
commit68a008e82da08b0bf7d421049f0a292b99b88048 (patch)
treec8877946ba313e24f2de3903f48994c0d1d29d70 /base/safe_strerror_posix.h
parent4d223f42c722674ae0a5f56cf9ac277fa9f52b9c (diff)
downloadchromium_src-68a008e82da08b0bf7d421049f0a292b99b88048.zip
chromium_src-68a008e82da08b0bf7d421049f0a292b99b88048.tar.gz
chromium_src-68a008e82da08b0bf7d421049f0a292b99b88048.tar.bz2
linux: components build
Reapply r83630, r83629, r83583, and fix the one compile error. TBR=rvargas git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/safe_strerror_posix.h')
-rw-r--r--base/safe_strerror_posix.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/base/safe_strerror_posix.h b/base/safe_strerror_posix.h
index 03c18c8..e72c836 100644
--- a/base/safe_strerror_posix.h
+++ b/base/safe_strerror_posix.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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,6 +8,8 @@
#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.
//
@@ -24,7 +26,7 @@
// result is always null-terminated. The value of errno is never changed.
//
// Use this instead of strerror_r().
-void safe_strerror_r(int err, char *buf, size_t len);
+BASE_API 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.
@@ -32,6 +34,6 @@ 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.
-std::string safe_strerror(int err);
+BASE_API std::string safe_strerror(int err);
#endif // BASE_SAFE_STRERROR_POSIX_H_