Added include of limits.h to get PATH_MAX. Added MIN and MAX macros.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3826 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#ifdef HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
#ifdef OS2
|
||||
#include <db.h>
|
||||
#endif
|
||||
@@ -50,6 +53,13 @@
|
||||
|
||||
#include "digita.h"
|
||||
|
||||
#ifndef MAX
|
||||
# define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
#endif
|
||||
#ifndef MIN
|
||||
# define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
static struct {
|
||||
char *model;
|
||||
int usb_vendor;
|
||||
|
||||
Reference in New Issue
Block a user