Skip to content

Commit 3b6c0f0

Browse files
committed
Fix [-Wundef] warning in FFI extension
1 parent 181276b commit 3b6c0f0

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
@@ -5108,7 +5108,7 @@ const struct {
51085108
{"ssize_t", &zend_ffi_type_sint64},
51095109
{"ptrdiff_t", &zend_ffi_type_sint64},
51105110
#endif
5111-
#if SIZEOF_OFF_T == 4
5111+
#if defined(SIZEOF_OFF_T) && SIZEOF_OFF_T == 4
51125112
{"off_t", &zend_ffi_type_sint32},
51135113
#else
51145114
{"off_t", &zend_ffi_type_sint64},

0 commit comments

Comments
 (0)