This is an automated email from the ASF dual-hosted git repository.
willayd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 8d421390 fix: Don't use the value of `__GNUC__` unless defined (#769)
8d421390 is described below
commit 8d421390f063485e5a319d2983ea8b8335a616fc
Author: Dewey Dunnington <[email protected]>
AuthorDate: Mon Jun 9 08:48:07 2025 -0500
fix: Don't use the value of `__GNUC__` unless defined (#769)
---
src/nanoarrow/nanoarrow.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nanoarrow/nanoarrow.h b/src/nanoarrow/nanoarrow.h
index ef64edfd..a32879a7 100644
--- a/src/nanoarrow/nanoarrow.h
+++ b/src/nanoarrow/nanoarrow.h
@@ -148,7 +148,7 @@
#define NANOARROW_DLL __declspec(dllimport)
#endif // defined(NANOARROW_EXPORT_DLL)
#elif !defined(NANOARROW_DLL)
-#if __GNUC__ >= 4
+#if defined(__GNUC__) && __GNUC__ >= 4
#define NANOARROW_DLL __attribute__((visibility("default")))
#else
#define NANOARROW_DLL