Re: [pcre-dev] Yet Another RC

Góra strony
Delete this message
Autor: Craig Silverstein
Data:  
Dla: silvermoonwoman
CC: pcre-dev
Temat: 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