| John Criswell | 2efc5b5 | 2003-10-20 20:11:43 +0000 | [diff] [blame] | 1 | /* |
| 2 | * The LLVM Compiler Infrastructure |
| 3 | * |
| 4 | * This file was developed by the LLVM research group and is distributed under |
| 5 | * the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 6 | * |
| 7 | *===----------------------------------------------------------------------===// |
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8 | * |
| 9 | * Description: |
| 10 | * This header file is the autoconf replacement for time.h (if it lives |
| 11 | * on the system). |
| 12 | * |
| 13 | * The added benefit of this header file is that it removes the |
| 14 | * "time with sys/time" problem. |
| 15 | * |
| 16 | * According to the autoconf manual, some systems have a sys/time.h that |
| 17 | * includes time.h, but time.h is not written to handle multiple |
| 18 | * inclusion. This means that a program including sys/time.h cannot |
| 19 | * also include time.h. |
| 20 | * |
| 21 | * This header file fixes that problem. |
| 22 | */ |
| 23 | |
| 24 | #ifndef _CONFIG_TIME_H |
| 25 | #define _CONFIG_TIME_H |
| 26 | |
| 27 | #include "Config/config.h" |
| 28 | |
| 29 | #ifdef HAVE_TIME_H |
| 30 | #include <time.h> |
| 31 | #endif |
| 32 | |
| 33 | #endif |