1 /****************************************************************************** 2 Copyright (c) 1992, 1995, 1996 Xerox Corporation. All rights reserved. 3 Portions of this code were written by Stephen White, aka ghond. 4 Use and copying of this software and preparation of derivative works based 5 upon this software are permitted. Any distribution of this software or 6 derivative works must comply with all applicable United States export 7 control laws. This software is made available AS IS, and Xerox Corporation 8 makes no warranty about the software, its performance or its conformity to 9 any specification. Any person obtaining a copy of this software is requested 10 to send their name and post office or electronic mail address to: 11 Pavel Curtis 12 Xerox PARC 13 3333 Coyote Hill Rd. 14 Palo Alto, CA 94304 15 Pavel@Xerox.Com 16 *****************************************************************************/ 17 18 #ifndef My_Time_H 19 #define My_Time_H 1 20 21 #include "config.h" 22 23 #if TIME_H_NEEDS_HELP 24 /* Some systems' time.h does not include time_t or clock_t */ 25 #include "my-types.h" 26 #endif 27 28 #include <time.h> 29 30 #if NDECL_TIME 31 #include "my-types.h" 32 33 extern time_t time(time_t *); 34 #endif 35 36 #if defined(MACH) && defined(CMU) 37 /* These clowns blew the declaration of strftime() in their <time.h> */ 38 #undef HAVE_STRFTIME 39 #endif 40 41 #if HAVE_STRFTIME && NDECL_STRFTIME 42 #include "my-types.h" 43 44 extern size_t strftime(char *s, size_t smax, const char *fmt, 45 const struct tm *tp); 46 #endif 47 48 #if HAVE_TZNAME && NDECL_TZNAME 49 extern char *tzname; 50 #endif 51 52 #endif /* !My_Time_H */ 53 54 /* 55 * $Log: my-time.h,v $ 56 * Revision 1.3 1998/12/14 13:18:21 nop 57 * Merge UNSAFE_OPTS (ref fixups); fix Log tag placement to fit CVS whims 58 * 59 * Revision 1.2 1997/03/03 04:18:58 nop 60 * GNU Indent normalization 61 * 62 * Revision 1.1.1.1 1997/03/03 03:45:05 nop 63 * LambdaMOO 1.8.0p5 64 * 65 * Revision 2.1 1996/02/08 06:00:41 pavel 66 * *** empty log message *** 67 * 68 * Revision 2.0 1995/11/30 04:59:30 pavel 69 * New baseline version, corresponding to release 1.8.0alpha1. 70 * 71 * Revision 1.5 1992/10/23 23:03:47 pavel 72 * Added copyright notice. 73 * 74 * Revision 1.4 1992/10/23 19:35:14 pavel 75 * Added check for avoiding strftime() on CMU MACH systems, since they declare 76 * it wrong (though they implement it right). 77 * Added missing #include "my-types.h" for strftime() declaration. 78 * 79 * Revision 1.3 1992/10/21 03:02:35 pavel 80 * Converted to use new automatic configuration system. 81 * 82 * Revision 1.2 1992/07/30 00:38:08 pavel 83 * Add support for compiling on RISC/os 4.52 and NonStop-UX A22. 84 * 85 * Revision 1.1 1992/07/20 23:23:12 pavel 86 * Initial RCS-controlled version. 87 */ 88