]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/versioning.h
Fix build issues, add missing files.
[thirdparty/cups.git] / cups / versioning.h
index 1ee7b78c49cdc547d05f1ebc6dda4fbde271af72..eb7a9164a97e75c0e708d862f38b29cfaf7acee3 100644 (file)
@@ -65,6 +65,8 @@
                                        /* GCC 4.5 or higher */
 #      define _CUPS_HAS_DEPRECATED_WITH_MESSAGE
 #    endif /* __GNUC__ >= 5 */
+#  elif defined(_WIN32)
+#    define __attribute__(...)
 #  endif /* __has_extension */
 
 
@@ -77,7 +79,7 @@
 #    define _CUPS_INTERNAL     __attribute__ ((visibility("hidden")))
 #    define _CUPS_PRIVATE      __attribute__ ((visibility("default")))
 #    define _CUPS_PUBLIC       __attribute__ ((visibility("default")))
-#  elif defined(_WIN32) && defined(LIBCUPS2_EXPORTS)
+#  elif defined(_WIN32) && defined(LIBCUPS2_EXPORTS) && 0
 #    define _CUPS_INTERNAL
 #    define _CUPS_PRIVATE      __declspec(dllexport)
 #    define _CUPS_PUBLIC       __declspec(dllexport)