summaryrefslogtreecommitdiff
path: root/libffi/src/m32r/ffitarget.h
diff options
context:
space:
mode:
Diffstat (limited to 'libffi/src/m32r/ffitarget.h')
-rw-r--r--libffi/src/m32r/ffitarget.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/libffi/src/m32r/ffitarget.h b/libffi/src/m32r/ffitarget.h
index 6a761f6593a..6c34801982f 100644
--- a/libffi/src/m32r/ffitarget.h
+++ b/libffi/src/m32r/ffitarget.h
@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------*-C-*-
- ffitarget.h - Copyright (c) 2004 Renesas Technology.
+ ffitarget.h - Copyright (c) 2012 Anthony Green
+ Copyright (c) 2004 Renesas Technology.
Target configuration macros for M32R.
Permission is hereby granted, free of charge, to any person obtaining
@@ -26,6 +27,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
+
/* ---- Generic type definitions ----------------------------------------- */
#ifndef LIBFFI_ASM
@@ -36,8 +41,8 @@ typedef enum ffi_abi
{
FFI_FIRST_ABI = 0,
FFI_SYSV,
- FFI_DEFAULT_ABI = FFI_SYSV,
- FFI_LAST_ABI = FFI_DEFAULT_ABI + 1
+ FFI_LAST_ABI,
+ FFI_DEFAULT_ABI = FFI_SYSV
} ffi_abi;
#endif