Factor out the i18n definitions into i18n.h include files:
One include file each for libgphoto2 and for libgphoto2_port.
This removes the complete
#ifdef ENABLE_NLS
# include <libintl.h>
# undef _
# define _(String) dgettext (GETTEXT_PACKAGE, String)
# ifdef gettext_noop
# define N_(String) gettext_noop (String)
# else
# define N_(String) (String)
# endif
#else
# define _(String) (String)
# define N_(String) (String)
#endif
block (which in some occasions defines even more macros)
and replaces it with a single line
#include "libgphoto2/i18n.h"
for camlibs and libgphoto2 itself and with
#include "libgphoto2_port/i18n.h"
for iolibs and libgphoto2_port itself.
This gives us two central locations to change the defintions.
KBGear JamCam v2 and v3 This driver is based upon protocol reverse-engineered using Portmon and sniffusb under Windows 98. For questions/comments, email the library author: Chris Pinkham cpinkham@infi.net ---------------------------------------------------------------- TODO List --------- - Fix downloading of thumbnails from mmc card (serial and usb) - better error checking/handling - optimize code, it's nowhere near theoretical max download speed ----------------------------------------------------------------- Author: Chris Pinkham <cpinkham@infi.net>