<langinfo.h>/<select.h>: don't use C++ comments
This commit is contained in:
@@ -83,9 +83,9 @@ enum {
|
|||||||
_NL_LANGINFO_LAST
|
_NL_LANGINFO_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
// According to the POSIX base specs v7, the above need to be available as
|
/* According to the POSIX base specs v7, the above need to be available as
|
||||||
// symbolic constants, so we define them individually to their respective
|
symbolic constants, so we define them individually to their respective
|
||||||
// enumeration name.
|
enumeration name. */
|
||||||
#define CODESET CODESET
|
#define CODESET CODESET
|
||||||
#define D_T_FMT D_T_FMT
|
#define D_T_FMT D_T_FMT
|
||||||
#define D_FMT D_FMT
|
#define D_FMT D_FMT
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ typedef struct fd_set {
|
|||||||
#define _FD_BITSINDEX(fd) ((fd) / NFDBITS)
|
#define _FD_BITSINDEX(fd) ((fd) / NFDBITS)
|
||||||
#define _FD_BIT(fd) (1L << ((fd) % NFDBITS))
|
#define _FD_BIT(fd) (1L << ((fd) % NFDBITS))
|
||||||
|
|
||||||
// FD_ZERO uses memset
|
/* FD_ZERO uses memset */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define FD_ZERO(set) memset((set), 0, sizeof(fd_set))
|
#define FD_ZERO(set) memset((set), 0, sizeof(fd_set))
|
||||||
|
|||||||
Reference in New Issue
Block a user