From 8360bf1cd0aba8db5582266da70467de7e89a57a Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Thu, 23 Feb 2012 07:01:13 -0500 Subject: Ensure that users don't include ffitarget.h directly --- src/mips/ffitarget.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mips') diff --git a/src/mips/ffitarget.h b/src/mips/ffitarget.h index 637adbf..717d659 100644 --- a/src/mips/ffitarget.h +++ b/src/mips/ffitarget.h @@ -1,5 +1,6 @@ /* -----------------------------------------------------------------*-C-*- - ffitarget.h - Copyright (c) 1996-2003 Red Hat, Inc. + ffitarget.h - Copyright (c) 2012 Anthony Green + Copyright (c) 1996-2003 Red Hat, Inc. Target configuration macros for MIPS. Permission is hereby granted, free of charge, to any person obtaining @@ -27,6 +28,10 @@ #ifndef LIBFFI_TARGET_H #define LIBFFI_TARGET_H +#ifndef LIBFFI_H +#error "Please do not include ffitarget.h directly into your source. Use ffi.h instead." +#endif + #ifdef linux # include #elif defined(__rtems__) -- cgit v1.2.3