diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-01-03 19:15:30 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-01-03 19:15:30 +0100 |
commit | 770f3e1b7f8fbc2669616be68f525960a4636a54 (patch) | |
tree | b546307294be39b08e6641a2e3aac89ef9f7c611 /libgphoto2_port/gphoto2 | |
parent | 14aab4929c65d6246ab31c0067dba83840b3cd70 (diff) | |
download | libgphoto2-770f3e1b7f8fbc2669616be68f525960a4636a54.tar.gz |
add ssize_t define and __func__ define for visual c
Diffstat (limited to 'libgphoto2_port/gphoto2')
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port-portability.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgphoto2_port/gphoto2/gphoto2-port-portability.h b/libgphoto2_port/gphoto2/gphoto2-port-portability.h index aa02d0916..2869e76ae 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-portability.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-portability.h @@ -46,6 +46,10 @@ # define snprintf _snprintf # endif +#define __func__ __FUNCTION__ + +typedef SSIZE_T ssize_t; + /* Work-around for readdir() */ typedef struct { HANDLE handle; @@ -65,6 +69,8 @@ typedef struct { # define sleep(x) usleep((x) * 1000 * 1000) + + /************************************************************************ * End WIN32 definitions ************************************************************************/ |