Unable to access uci.h variable UCI_LOOKUP_COMPLETE

#include "uci.h"
..
..
..
char buffer[80];
struct  uci_ptr ptr;
struct  uci_context *c = uci_alloc_context();

if ((uci_lookup_ptr(c, &ptr, const_cast<char*>(cmdStr.c_str()), true) != UCI_OK) ||
        (ptr.o==NULL || ptr.o->v.string==NULL)) { 
        uci_free_context(c);
        return NULL;
    }

    if(ptr.flags & UCI_LOOKUP_COMPLETE)
            strcpy(buffer, ptr.o->v.string);
..
..
..

From the above code, while compiling, i am able to access the functions defined in uci.h but UCI_LOOKUP_COMPLETE is missing. Here is a snapshot of UCI_LOOKUP_COMPLETE containing structure.

struct uci_ptr
{
	enum uci_type target;
	enum {
		UCI_LOOKUP_DONE =     (1 << 0),
		UCI_LOOKUP_COMPLETE = (1 << 1),
		UCI_LOOKUP_EXTENDED = (1 << 2),
	} flags;

	struct uci_package *p;
	struct uci_section *s;
	struct uci_option *o;
	struct uci_element *last;

	const char *package;
	const char *section;
	const char *option;
	const char *value;
};

Following error is shown:

utils.cpp:274:20: error: 'UCI_LOOKUP_COMPLETE' was not declared in this scope
     if(ptr.flags & UCI_LOOKUP_COMPLETE)

Any clues as this is not a straight away file accessing issue ?