#ifndef _TOKU_DIRENT_H
#define _TOKU_DIRENT_H

#if defined(__cplusplus)
extern "C" {
#endif

//The DIR functions do not exist in windows, but the Linux API ends up
//just using a wrapper.  We might convert these into an toku_os_* type api.

enum {
    DT_UNKNOWN = 0,
    DT_DIR     = 4,
    DT_REG     = 8
};

struct dirent {
    char          d_name[_MAX_PATH];
    unsigned char d_type;
};

struct __toku_windir;
typedef struct __toku_windir DIR;


DIR *opendir(const char *name);

struct dirent *readdir(DIR *dir);

int closedir(DIR *dir);

#ifndef NAME_MAX
#define NAME_MAX 255
#endif

#if defined(__cplusplus)
};
#endif

#endif


#ifndef _TOKU_DIRENT_H
#define _TOKU_DIRENT_H

#include "toku_os_types.h"
#if defined(__cplusplus)
extern "C" {
#endif

//The DIR functions do not exist in windows, but the Linux API ends up
//just using a wrapper.  We might convert these into an toku_os_* type api.

enum {
    DT_UNKNOWN = 0,
    DT_DIR     = 4,
    DT_REG     = 8
};

struct dirent {
    char          d_name[_MAX_PATH];
    unsigned char d_type;
};

struct __toku_windir;
typedef struct __toku_windir DIR;


DIR *opendir(const char *name);

struct dirent *readdir(DIR *dir);

int closedir(DIR *dir);

#ifndef NAME_MAX
#define NAME_MAX 255
#endif

#if defined(__cplusplus)
};
#endif

#endif


Fix broken windows build due to r19902 (merge of 2499d branch)
[t:2499] Fix broken windows build due to r19902 (merge of 2499d branch)

git-svn-id: b5c078ec0b4d3a50497e9dd3081db18a5b4f16e5@19935 c7de825b-a66e-492c-adef-691d508d4ae1
