Re: [pcre-dev] Yet Another RC

Top Page
Delete this message
Author: Craig Silverstein
Date:  
To: silvermoonwoman
CC: pcre-dev
Subject: Re: [pcre-dev] Yet Another RC
} Didn't work with msys/configure

Blah, of course: We need to include windows.h! Try this code snippet
instead:

      #ifdef HAVE_WINDOWS_H
      #include <windows.h>
      #define HAVE_STRTOLL 1
      #define strtoll     _strtoui64
      #define strtoull    _strtoi64
      #endif



Actually, a bit better is to do this:

      #ifdef HAVE_WINDOWS_H
      #define WIN32_LEAN_AND_MEAN  /* We always want minimal includes */
      #include <windows.h>
      #define HAVE_STRTOLL 1
      #define strtoll     _strtoui64
      #define strtoull    _strtoi64
      #endif


Sorry for all these iterations. I hope this one is the charm.

craig