summaryrefslogtreecommitdiff
path: root/libusb/os/windows_compat.h
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-14 12:57:07 +0000
committerPete Batard <pbatard@gmail.com>2010-01-14 12:57:07 +0000
commite45233574257f5ffd409e830c0d1d32fc6b37d81 (patch)
tree4fed47145a1c04e8bd41ac5af11e448d87ea9e88 /libusb/os/windows_compat.h
parent6cc0e6afc4ee0f66ff355ec76bee4f1828118b6e (diff)
downloadlibusb-e45233574257f5ffd409e830c0d1d32fc6b37d81.tar.gz
Fix CR/LF inconsistencies
Diffstat (limited to 'libusb/os/windows_compat.h')
-rw-r--r--libusb/os/windows_compat.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/libusb/os/windows_compat.h b/libusb/os/windows_compat.h
index 95f8d75..61de32d 100644
--- a/libusb/os/windows_compat.h
+++ b/libusb/os/windows_compat.h
@@ -26,15 +26,15 @@
*
* This is placed in the .h to limit changes required to the core files
*/
-#if defined(interface)
-#undef interface
+#if defined(interface)
+#undef interface
#endif
#if !defined(ssize_t)
-#if defined (_WIN64)
-#define ssize_t __int64
-#else
-#define ssize_t long
+#if defined (_WIN64)
+#define ssize_t __int64
+#else
+#define ssize_t long
#endif
#endif
@@ -92,13 +92,13 @@ struct winfd overlapped_to_winfd(OVERLAPPED* overlapped);
}
#endif
#if !defined(timersub)
-#define timersub(a, b, result) \
-do { \
- (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
- (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
- if ((result)->tv_usec < 0) { \
- --(result)->tv_sec; \
- (result)->tv_usec += 1000000; \
- } \
-} while (0)
-#endif
+#define timersub(a, b, result) \
+do { \
+ (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
+ (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
+ if ((result)->tv_usec < 0) { \
+ --(result)->tv_sec; \
+ (result)->tv_usec += 1000000; \
+ } \
+} while (0)
+#endif