diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-28 13:10:27 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-28 13:10:31 -0500 |
commit | 4adf25952f8af0a8b61b3737b46c6a7146fd034a (patch) | |
tree | b808a18145e730eb2dea7a426b6ac9fa22d8070a /src/systemtime.h | |
parent | contrib: Add appdata file to RPM package (diff) | |
download | redshift-ng-4adf25952f8af0a8b61b3737b46c6a7146fd034a.tar.gz redshift-ng-4adf25952f8af0a8b61b3737b46c6a7146fd034a.tar.bz2 redshift-ng-4adf25952f8af0a8b61b3737b46c6a7146fd034a.tar.xz |
systemtime: Fix includes and check for _POSIX_TIMERS
Fix missing include of windows.h on windows platform. Change check
for _POSIX_TIMERS to check that it is greater than 0. On OS X, the
POSIX timers are not available and _POSIX_TIMERS is -1.
Diffstat (limited to '')
-rw-r--r-- | src/systemtime.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/systemtime.h b/src/systemtime.h index 90da169..0a6a66c 100644 --- a/src/systemtime.h +++ b/src/systemtime.h @@ -14,18 +14,12 @@ You should have received a copy of the GNU General Public License along with Redshift. If not, see <http://www.gnu.org/licenses/>. - Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com> + Copyright (c) 2010-2014 Jon Lund Steffensen <jonlst@gmail.com> */ #ifndef REDSHIFT_SYSTEMTIME_H #define REDSHIFT_SYSTEMTIME_H -#ifndef _WIN32 -# include <time.h> -#else -# include <windows.h> -#endif - int systemtime_get_time(double *now); |