Skip to content

Commit 8862dd3

Browse files
committed
Fix [-Wundef] warning in FFI extension
1 parent 9a28d97 commit 8862dd3

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
@@ -5128,7 +5128,7 @@ const struct {
51285128
{"ssize_t", &zend_ffi_type_sint64},
51295129
{"ptrdiff_t", &zend_ffi_type_sint64},
51305130
#endif
5131-
#if SIZEOF_OFF_T == 4
5131+
#if defined(SIZEOF_OFF_T) && SIZEOF_OFF_T == 4
51325132
{"off_t", &zend_ffi_type_sint32},
51335133
#else
51345134
{"off_t", &zend_ffi_type_sint64},

0 commit comments

Comments
 (0)