Print this page
remove support for non-ANSI compilation
*** 17,26 ****
--- 17,28 ----
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
*** 80,109 ****
*/
#undef makedev
#undef major
#undef minor
- #if defined(__STDC__)
-
extern dev_t makedev(const major_t, const minor_t);
extern major_t major(const dev_t);
extern minor_t minor(const dev_t);
extern dev_t __makedev(const int, const major_t, const minor_t);
extern major_t __major(const int, const dev_t);
extern minor_t __minor(const int, const dev_t);
- #else
-
- extern dev_t makedev();
- extern major_t major();
- extern minor_t minor();
- extern dev_t __makedev();
- extern major_t __major();
- extern minor_t __minor();
-
- #endif /* defined(__STDC__) */
-
#define OLDDEV 0 /* old device format */
#define NEWDEV 1 /* new device format */
#define makedev(maj, min) (__makedev(NEWDEV, maj, min))
#define major(dev) (__major(NEWDEV, dev))
--- 82,98 ----