Project

General

Profile

Bug #3853 » illumos_clang.patch

Alexander Pyhalov, 2013-06-29 11:15 AM

View differences:

usr/src/head/malloc.h
61 61

  
62 62
#if defined(__STDC__)
63 63

  
64
#if __cplusplus >= 199711L
65
namespace std {
66
#endif
64 67
void *malloc(size_t);
65 68
void free(void *);
66 69
void *realloc(void *, size_t);
70
void *calloc(size_t, size_t);
71
#if __cplusplus >= 199711L
72
}
73
#endif /* end of namespace std */
74

  
67 75
int mallopt(int, int);
68 76
struct mallinfo mallinfo(void);
69
void *calloc(size_t, size_t);
70 77

  
71 78
#else
72 79

  
usr/src/head/unistd.h
461 461
#endif
462 462
#if (!defined(__XOPEN_OR_POSIX) || (defined(_XPG3) && !defined(_XPG4))) || \
463 463
	defined(__EXTENSIONS__)
464
#if __cplusplus >= 199711L
465
namespace std {
466
#endif
467

  
464 468
extern int rename(const char *, const char *);
469

  
470
#if __cplusplus >= 199711L
471
}
472
#endif /* end of namespace std */
465 473
#endif /* (!defined(__XOPEN_OR_POSIX) || (defined(_XPG3)... */
466 474
#if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
467 475
extern int resolvepath(const char *, char *, size_t);
(2-2/6)