Skip to content

Commit c2e7b6d

Browse files
committed
Fix [-Wundef] warning in FFI extension
1 parent c1c3a9f commit c2e7b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ffi/ffi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5109,7 +5109,7 @@ const struct {
51095109
{"ssize_t", &zend_ffi_type_sint64},
51105110
{"ptrdiff_t", &zend_ffi_type_sint64},
51115111
#endif
5112-
#if SIZEOF_OFF_T == 4
5112+
#if defined(SIZEOF_OFF_T) && SIZEOF_OFF_T == 4
51135113
{"off_t", &zend_ffi_type_sint32},
51145114
#else
51155115
{"off_t", &zend_ffi_type_sint64},

0 commit comments

Comments
 (0)