Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
469b2a52
Commit
469b2a52
authored
Oct 25, 2007
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffi_type_longdouble may be already #defined.
See issue 1324.
parent
6e183f8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Modules/_ctypes/cfield.c
Modules/_ctypes/cfield.c
+4
-2
No files found.
Modules/_ctypes/cfield.c
View file @
469b2a52
...
...
@@ -1753,11 +1753,13 @@ ffi_type ffi_type_sint64 = { 8, LONG_LONG_ALIGN, FFI_TYPE_SINT64 };
ffi_type
ffi_type_float
=
{
sizeof
(
float
),
FLOAT_ALIGN
,
FFI_TYPE_FLOAT
};
ffi_type
ffi_type_double
=
{
sizeof
(
double
),
DOUBLE_ALIGN
,
FFI_TYPE_DOUBLE
};
#ifdef ffi_type_longdouble
#undef ffi_type_longdouble
#endif
ffi_type
ffi_type_longdouble
=
{
sizeof
(
long
double
),
LONGDOUBLE_ALIGN
,
FFI_TYPE_LONGDOUBLE
};
/* ffi_type ffi_type_longdouble */
ffi_type
ffi_type_pointer
=
{
sizeof
(
void
*
),
VOID_P_ALIGN
,
FFI_TYPE_POINTER
};
/*---------------- EOF ----------------*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment