We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a27129 commit a7427ddCopy full SHA for a7427dd
onnx/onnx_pb.h
@@ -4,6 +4,19 @@
4
#ifndef ONNX_ONNX_PB_H
5
#define ONNX_ONNX_PB_H
6
7
+/**
8
+ * Macro for marking functions as having public visibility.
9
+ * Ported from folly/CPortability.h
10
+ */
11
+#ifndef __GNUC_PREREQ
12
+#if defined __GNUC__ && defined __GNUC_MINOR__
13
+#define __GNUC_PREREQ(maj, min) \
14
+ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
15
+#else
16
+#define __GNUC_PREREQ(maj, min) 0
17
+#endif
18
19
+
20
// Defines ONNX_EXPORT and ONNX_IMPORT. On Windows, this corresponds to
21
// different declarations (dllexport and dllimport). On Linux/Mac, it just
22
// resolves to the same "default visibility" setting.
0 commit comments