Try declaring tables with WS_VAR_IMPORT.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 31 Aug 2011 09:56:25 +0000 (09:56 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 31 Aug 2011 09:56:25 +0000 (09:56 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38814 f5534014-38df-0310-8fa8-9805f1628bb7

wsutil/crc32.h

index 90d77ae31f638a70eb11b9cb8be25684a8c3e8f9..f69dba6ebf9a6f66dd21d04c10181246bcbd29dd 100644 (file)
@@ -43,7 +43,7 @@ extern "C" {
 
 #define CRC32C(c,d) (c=(c>>8)^crc32c_table[(c^(d))&0xFF])
 
-extern const guint32 crc32c_table[256];
+WS_VAR_IMPORT const guint32 crc32c_table[256];
 
 /** Compute CRC32C checksum of a buffer of data.
  @param buf The buffer containing the data.
@@ -52,7 +52,7 @@ extern const guint32 crc32c_table[256];
  @return The CRC32C checksum. */
 extern guint32 crc32c_calculate(const void *buf, int len, guint32 crc);
 
-extern const guint32 crc32_ccitt_table[256];
+WS_VAR_IMPORT const guint32 crc32_ccitt_table[256];
 
 /** Compute CRC32 CCITT checksum of a buffer of data.
  @param buf The buffer containing the data.