btbredr: fix NESTING_INDENT_MISMATCH (CID 1358479)
[metze/wireshark/wip.git] / ws_symbol_export.h
index c3804755a61b56cc9ab00563471ec311a5f3ed6d..45082d3256b3a1cf10c47afdbe62f4b4e3db1252 100644 (file)
      * This was lifted from GLib; see above for why we don't use
      * G_GNUC_INTERNAL.
      */
-    #define WS_DLL_PUBLIC_DEF
     #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
+      /* This supports GCC-style __attribute__ ((visibility (XXX))) */
+      #define WS_DLL_PUBLIC_DEF __attribute__ ((visibility ("default")))
       #define WS_DLL_LOCAL __attribute__ ((visibility ("hidden")))
     #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+      /* This doesn't, but supports __global and __hidden */
+      #define WS_DLL_PUBLIC_DEF __global
       #define WS_DLL_LOCAL __hidden
     #else /* not Sun C with "hidden" support */
+      #define WS_DLL_PUBLIC_DEF
       #define WS_DLL_LOCAL
     #endif
   #endif /* __GNUC__ >= 4 */
  *
  * Either can be used for exported *function* declarations and definitions.
  */
-#define WS_DLL_PUBLIC  WS_DLL_PUBLIC_DEF extern
+#define WS_DLL_PUBLIC  WS_DLL_PUBLIC_DEF extern
 
 #endif /* SYMBOL_EXPORT_H */
+
+/*
+ * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
+ *
+ * Local Variables:
+ * c-basic-offset: 2
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * vi: set shiftwidth=2 tabstop=8 expandtab:
+ * :indentSize=2:tabSize=8:noTabs=true:
+ */