Blender  V3.3
Classes | Macros | Typedefs | Functions
BLI_winstuff.h File Reference

Compatibility-like things for windows. More...

#include "BLI_sys_types.h"
#include <windows.h>

Go to the source code of this file.

Classes

struct  dirent
 

Macros

#define WIN32_LEAN_AND_MEAN
 
#define _USE_MATH_DEFINES
 
#define MAXPATHLEN   MAX_PATH
 
#define S_ISREG(x)   (((x)&_S_IFREG) == _S_IFREG)
 
#define S_ISDIR(x)   (((x)&_S_IFDIR) == _S_IFDIR)
 
#define snprintf   _snprintf
 
#define _SSIZE_T_
 
#define HAVE_SSIZE_T   1
 

Typedefs

typedef unsigned int mode_t
 
typedef SSIZE_T ssize_t
 
typedef struct __dirstream DIR
 

Functions

DIRopendir (const char *path)
 
struct direntreaddir (DIR *dp)
 
int closedir (DIR *dp)
 
const char * dirname (char *path)
 
bool BLI_windows_register_blend_extension (bool background)
 
void BLI_windows_get_default_root_dir (char root_dir[4])
 
int BLI_windows_get_executable_dir (char *str)
 

Detailed Description

Compatibility-like things for windows.

Definition in file BLI_winstuff.h.

Macro Definition Documentation

◆ _SSIZE_T_

#define _SSIZE_T_

Definition at line 67 of file BLI_winstuff.h.

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 39 of file BLI_winstuff.h.

◆ HAVE_SSIZE_T

#define HAVE_SSIZE_T   1

Definition at line 70 of file BLI_winstuff.h.

◆ MAXPATHLEN

#define MAXPATHLEN   MAX_PATH

Definition at line 42 of file BLI_winstuff.h.

◆ S_ISDIR

#define S_ISDIR (   x)    (((x)&_S_IFDIR) == _S_IFDIR)

Definition at line 48 of file BLI_winstuff.h.

◆ S_ISREG

#define S_ISREG (   x)    (((x)&_S_IFREG) == _S_IFREG)

Definition at line 45 of file BLI_winstuff.h.

◆ snprintf

#define snprintf   _snprintf

Definition at line 53 of file BLI_winstuff.h.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 17 of file BLI_winstuff.h.

Typedef Documentation

◆ DIR

typedef struct __dirstream DIR

Intentionally opaque to users.

Definition at line 71 of file BLI_winstuff.h.

◆ mode_t

typedef unsigned int mode_t

Definition at line 64 of file BLI_winstuff.h.

◆ ssize_t

typedef SSIZE_T ssize_t

Definition at line 71 of file BLI_winstuff.h.

Function Documentation

◆ BLI_windows_get_default_root_dir()

void BLI_windows_get_default_root_dir ( char  root_dir[4])

◆ BLI_windows_get_executable_dir()

int BLI_windows_get_executable_dir ( char *  str)

◆ BLI_windows_register_blend_extension()

bool BLI_windows_register_blend_extension ( bool  background)

◆ closedir()

int closedir ( DIR dp)

◆ dirname()

const char* dirname ( char *  path)

◆ opendir()

DIR* opendir ( const char *  path)

◆ readdir()

struct dirent* readdir ( DIR dp)