From 4093d16d51324e72436224347e1ffa80ef390951 Mon Sep 17 00:00:00 2001 From: Salvatore Benedetto Date: Sun, 10 Aug 2008 16:29:51 +0000 Subject: [PATCH] * updating license * use _{BEGIN|END}_DECL macro instead of ifdef C++ git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26921 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/sys/resource.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/headers/posix/sys/resource.h b/headers/posix/sys/resource.h index 403e9c25a1..1dfbc21249 100644 --- a/headers/posix/sys/resource.h +++ b/headers/posix/sys/resource.h @@ -1,10 +1,11 @@ +/* + * Copyright 2008, Haiku Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + */ #ifndef _SYS_RESOURCE_H #define _SYS_RESOURCE_H -/* -** Distributed under the terms of the OpenBeOS License. -*/ - +#include #include @@ -53,9 +54,7 @@ struct rusage { #define PRIO_USER 2 -#ifdef __cplusplus -extern "C" { -#endif +__BEGIN_DECLS extern int getrusage(int who, struct rusage *rusage); @@ -66,8 +65,6 @@ extern int setrlimit(int resource, const struct rlimit * rlp); * int getpriority(int which, id_t who); * int setpriority(int which, id_t who, int priority); */ -#ifdef __cplusplus -} -#endif +__END_DECLS #endif /* _SYS_RESOURCE_H */