X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fapi.h;h=9746ea4389cd945cec76eb75043d9732b54ed64f;hb=18ca7a5b5573e511a66f118ec863df82a6d247e4;hp=49c96f7d969eb4fa01bb35b7efc0c50266e88d79;hpb=8c4f4949473b6a74419e323c55cae2a8a33d58c0;p=urcu.git diff --git a/tests/api.h b/tests/api.h index 49c96f7..9746ea4 100644 --- a/tests/api.h +++ b/tests/api.h @@ -1,7 +1,7 @@ - #ifndef _INCLUDE_API_H #define _INCLUDE_API_H +#define _GNU_SOURCE #include "../config.h" /* @@ -19,7 +19,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Copyright (c) 2006 Paul E. McKenney, IBM. * @@ -27,11 +27,9 @@ * to redistribute under later versions of GPL might not be available. */ +#include #include -#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) -#define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1) - /* * Machine parameters. */ @@ -56,7 +54,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Copyright (c) 2006 Paul E. McKenney, IBM. */ @@ -66,7 +64,6 @@ #include #include #include -#define __USE_GNU #include #include #include