Re: [pcre-dev] Yet Another RC

Pàgina inicial
Delete this message
Autor: Craig Silverstein
Data:  
A: silvermoonwoman
CC: pcre-dev
Assumpte: 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