From 3d45c35d0c72a884b23402df4147eeea1948cabd Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 13 Jul 2008 20:10:13 +0000 Subject: [PATCH] only define this stuff when building libgphoto2 itself, it will break external users in C++ or WIn32. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11219 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2_port/gphoto2/gphoto2-port-portability.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgphoto2_port/gphoto2/gphoto2-port-portability.h b/libgphoto2_port/gphoto2/gphoto2-port-portability.h index b17a37fd5..2233f7648 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-portability.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-portability.h @@ -2,6 +2,8 @@ #ifndef __GPHOTO2_PORT_PORTABILITY_H__ #define __GPHOTO2_PORT_PORTABILITY_H__ +#ifdef _GPHOTO2_INTERNAL_CODE + #if defined(WIN32) && !defined(__WINESRC__) /************************************************************************ @@ -214,6 +216,7 @@ int gp_system_is_dir (const char *dirname); /************************************************************************ * End platform independent portability functions ************************************************************************/ +#endif /* _GPHOTO2_INTERNAL_CODE */ #endif /* ifndef __GPHOTO2_PORT_PORTABILITY_H__ */ /* end of file */