| Index: compat/win/time.h
|
| diff --git a/compat/mac/sys/resource.h b/compat/win/time.h
|
| similarity index 58%
|
| copy from compat/mac/sys/resource.h
|
| copy to compat/win/time.h
|
| index 0697e169b58de22e5d34ba36f808aad2b94c4beb..7c6adc2ce8dfe8f21b2c5fa7cef828016f3c8d22 100644
|
| --- a/compat/mac/sys/resource.h
|
| +++ b/compat/win/time.h
|
| @@ -12,15 +12,25 @@
|
| // See the License for the specific language governing permissions and
|
| // limitations under the License.
|
|
|
| -#ifndef CRASHPAD_COMPAT_MAC_SYS_RESOURCE_H_
|
| -#define CRASHPAD_COMPAT_MAC_SYS_RESOURCE_H_
|
| +#ifndef CRASHPAD_COMPAT_WIN_TIME_H_
|
| +#define CRASHPAD_COMPAT_WIN_TIME_H_
|
|
|
| -#include_next <sys/resource.h>
|
| +#include <../include/time.h>
|
|
|
| -// 10.9 SDK
|
| +#ifdef __cplusplus
|
| +extern "C" {
|
| +#endif
|
| +
|
| +struct tm* gmtime_r(const time_t* timep, struct tm* result);
|
| +
|
| +struct tm* localtime_r(const time_t* timep, struct tm* result);
|
| +
|
| +const char* strptime(const char* buf, const char* format, struct tm* tm);
|
| +
|
| +time_t timegm(struct tm* tm);
|
|
|
| -#ifndef WAKEMON_MAKE_FATAL
|
| -#define WAKEMON_MAKE_FATAL 0x10
|
| +#ifdef __cplusplus
|
| +} // extern "C"
|
| #endif
|
|
|
| -#endif // CRASHPAD_COMPAT_MAC_SYS_RESOURCE_H_
|
| +#endif // CRASHPAD_COMPAT_WIN_TIME_H_
|
|
|