add c_plusplus to STDC ifdef
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 24 Jun 1990 02:56:51 +0000 (18:56 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 24 Jun 1990 02:56:51 +0000 (18:56 -0800)
SCCS-vsn: include/time.h 5.5

usr/src/include/time.h

index 050e48b..2b8f29b 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)time.h      5.4 (Berkeley) %G%
+ *     @(#)time.h      5.5 (Berkeley) %G%
  */
 
 #include <sys/types.h>
  */
 
 #include <sys/types.h>
@@ -23,7 +23,7 @@ struct tm {
        char    *tm_zone;       /* timezone abbreviation */
 };
 
        char    *tm_zone;       /* timezone abbreviation */
 };
 
-#ifdef __STDC__
+#if __STDC__ || c_plusplus
 extern struct tm *gmtime(const time_t *);
 extern struct tm *localtime(const time_t *);
 extern time_t mktime(const struct tm *);
 extern struct tm *gmtime(const time_t *);
 extern struct tm *localtime(const time_t *);
 extern time_t mktime(const struct tm *);