Vitaly Buka | cbed206 | 2015-08-17 12:54:05 -0700 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef BASE_STRINGS_STRING_UTIL_POSIX_H_ |
| 6 | #define BASE_STRINGS_STRING_UTIL_POSIX_H_ |
| 7 | |
| 8 | #include <stdarg.h> |
Alex Vakulenko | 674f0eb | 2016-01-20 08:10:48 -0800 | [diff] [blame] | 9 | #include <stddef.h> |
Vitaly Buka | cbed206 | 2015-08-17 12:54:05 -0700 | [diff] [blame] | 10 | #include <stdio.h> |
| 11 | #include <string.h> |
| 12 | #include <wchar.h> |
| 13 | |
| 14 | #include "base/logging.h" |
| 15 | |
| 16 | namespace base { |
| 17 | |
Vitaly Buka | cbed206 | 2015-08-17 12:54:05 -0700 | [diff] [blame] | 18 | inline int vsnprintf(char* buffer, size_t size, |
| 19 | const char* format, va_list arguments) { |
| 20 | return ::vsnprintf(buffer, size, format, arguments); |
| 21 | } |
Vitaly Buka | cbed206 | 2015-08-17 12:54:05 -0700 | [diff] [blame] | 22 | } // namespace base |
| 23 | |
| 24 | #endif // BASE_STRINGS_STRING_UTIL_POSIX_H_ |