diff options
Diffstat (limited to 'libs/pbd/pbd/timersub.h')
-rw-r--r-- | libs/pbd/pbd/timersub.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/libs/pbd/pbd/timersub.h b/libs/pbd/pbd/timersub.h index 6cb152414c..785cbdde9d 100644 --- a/libs/pbd/pbd/timersub.h +++ b/libs/pbd/pbd/timersub.h @@ -1,5 +1,5 @@ /* Copyright (C) 1991-1994,1996-2003,2005,2006,2009 - Free Software Foundation, Inc. + Free Software Foundation, Inc. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -19,14 +19,13 @@ #include <sys/time.h> #ifndef 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; \ - } \ +# 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 - |