Browse files

Fix bswap macros for Microsoft Visual Studio C 2006 or newer

  • Loading branch information...
1 parent 1eabc8a commit 017ffb3030dacabf54fb3d74728009109b9f6476 @oldfaber oldfaber committed with Dec 4, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/modbus-data.c
View
3 src/modbus-data.c
@@ -39,6 +39,9 @@
# define bswap_32 __builtin_bswap32
# endif
#endif
+#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+# define bswap_32 _byteswap_ulong
+#endif
#if !defined(bswap_32)

0 comments on commit 017ffb3

Please sign in to comment.