diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-03-18 17:11:20 -0700 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-03-18 17:11:20 -0700 |
commit | 886edc68f41f74b07fb0e3a72d00ef979d8ea623 (patch) | |
tree | 05c30cd51c5b77445b07b9c6bf14009c2053f4ce /Modules/_ctypes/libffi/src/m68k/ffitarget.h | |
parent | 5a43c024aa5d5ad981bf71362e26c0080b4a2e6f (diff) | |
download | cpython-886edc68f41f74b07fb0e3a72d00ef979d8ea623.tar.gz |
Fixes issue #17192: Update the ctypes module's libffi to v3.0.13. This
specifically addresses a stack misalignment issue on x86 and issues on
some more recent platforms.
Diffstat (limited to 'Modules/_ctypes/libffi/src/m68k/ffitarget.h')
-rw-r--r-- | Modules/_ctypes/libffi/src/m68k/ffitarget.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/_ctypes/libffi/src/m68k/ffitarget.h b/Modules/_ctypes/libffi/src/m68k/ffitarget.h index 633717bbfa..e81dde2b2e 100644 --- a/Modules/_ctypes/libffi/src/m68k/ffitarget.h +++ b/Modules/_ctypes/libffi/src/m68k/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 Motorola 68K. 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 + #ifndef LIBFFI_ASM typedef unsigned long ffi_arg; typedef signed long ffi_sarg; @@ -34,8 +39,8 @@ typedef signed long ffi_sarg; 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 |