CLK_TCK is considered obsolete in GCC, use CLOCKS_PER_SEC instead

This commit is contained in:
Peter Howkins 2012-03-12 16:05:21 +00:00
parent 5949e1c410
commit 53f42b5113
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@
#include "abmfP.h"
#include "abmf.h"
/* glibc considers CLK_TCK obsolete */
#if defined(linux)
#define CLK_TCK CLOCKS_PER_SEC
#endif
#ifdef __cplusplus
extern "C" {
#endif