Make some headers C89 safe again
- Allows to use FindDirectory.h in C89 sourcecode (no C++ style comments allowed)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include <limits.h>
|
||||
|
||||
|
||||
// Limits
|
||||
/* Limits */
|
||||
#define B_DEV_NAME_LENGTH 128
|
||||
#define B_FILE_NAME_LENGTH NAME_MAX
|
||||
#define B_PATH_NAME_LENGTH MAXPATHLEN
|
||||
@@ -19,17 +19,17 @@
|
||||
#define B_MIME_TYPE_LENGTH (B_ATTR_NAME_LENGTH - 15)
|
||||
#define B_MAX_SYMLINKS SYMLOOP_MAX
|
||||
|
||||
// Open Modes
|
||||
#define B_READ_ONLY O_RDONLY // read only
|
||||
#define B_WRITE_ONLY O_WRONLY // write only
|
||||
#define B_READ_WRITE O_RDWR // read and write
|
||||
/* Open Modes */
|
||||
#define B_READ_ONLY O_RDONLY /* read only */
|
||||
#define B_WRITE_ONLY O_WRONLY /* write only */
|
||||
#define B_READ_WRITE O_RDWR /* read and write */
|
||||
|
||||
#define B_FAIL_IF_EXISTS O_EXCL // exclusive create
|
||||
#define B_CREATE_FILE O_CREAT // create the file
|
||||
#define B_ERASE_FILE O_TRUNC // erase the file's data
|
||||
#define B_OPEN_AT_END O_APPEND // point to the end of the data
|
||||
#define B_FAIL_IF_EXISTS O_EXCL /* exclusive create */
|
||||
#define B_CREATE_FILE O_CREAT /* create the file */
|
||||
#define B_ERASE_FILE O_TRUNC /* erase the file's data */
|
||||
#define B_OPEN_AT_END O_APPEND /* point to the end of the data */
|
||||
|
||||
// Node Flavors
|
||||
/* Node Flavors */
|
||||
enum node_flavor {
|
||||
B_FILE_NODE = 0x01,
|
||||
B_SYMLINK_NODE = 0x02,
|
||||
@@ -38,4 +38,4 @@ enum node_flavor {
|
||||
};
|
||||
|
||||
|
||||
#endif // _DEF_STORAGE_H
|
||||
#endif /* _DEF_STORAGE_H */
|
||||
|
||||
Reference in New Issue
Block a user