mirror of
https://github.com/partic2/libffi
synced 2026-11-10 18:17:19 +00:00
Prefix ALIGN macros with FFI_
This commit is contained in:
+4
-4
@@ -134,7 +134,7 @@ ffi_prep_args (void *stack, extended_cif *ecif)
|
||||
/* Enforce proper stack alignment of 64-bit types */
|
||||
if (argp == stackp && a > sizeof (int))
|
||||
{
|
||||
stackp = (char *) ALIGN(stackp, a);
|
||||
stackp = (char *) FFI_ALIGN(stackp, a);
|
||||
argp = stackp;
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ ffi_prep_args (void *stack, extended_cif *ecif)
|
||||
|
||||
/* Align if necessary. */
|
||||
if ((sizeof (int) - 1) & z)
|
||||
z = ALIGN(z, sizeof (int));
|
||||
z = FFI_ALIGN(z, sizeof (int));
|
||||
|
||||
p_argv++;
|
||||
|
||||
@@ -320,7 +320,7 @@ ffi_prep_closure_args_OBSD (ffi_cif *cif, void **avalue, unsigned int *regp,
|
||||
/* Enforce proper stack alignment of 64-bit types */
|
||||
if (argp == stackp && a > sizeof (int))
|
||||
{
|
||||
stackp = (char *) ALIGN(stackp, a);
|
||||
stackp = (char *) FFI_ALIGN(stackp, a);
|
||||
argp = stackp;
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ ffi_prep_closure_args_OBSD (ffi_cif *cif, void **avalue, unsigned int *regp,
|
||||
|
||||
/* Align if necessary */
|
||||
if ((sizeof (int) - 1) & z)
|
||||
z = ALIGN(z, sizeof (int));
|
||||
z = FFI_ALIGN(z, sizeof (int));
|
||||
|
||||
p_argv++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user