Help with updating PowerDNS to boost for easier windows compilation

Hi all, I'm in the process of updating the 2.9.22 source of PowerDNS to be a bit more "Windows Friendly" and building it with Visual C++ 8 (2008). However, I'm having some issues I could use a hand with. Specifically, the authors of powerdns define their own following types #ifdef NEED_POSIX_TYPEDEF typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; #endif These types are used extensively in the code. Rather than prefix each reference with the boost:: namspace, I would like to make boot the standard namespace for these data types. Everything includes the header file with the definition above, is there a way for me to do this? I haven't done C and C++ in 9 years, and even then only on very small projects and small patches, so your help is greatly appreciated. Thanks, todd SENIOR SOFTWARE ENGINEER todd nine | spidertracks ltd | 117a the square po box 5203 | palmerston north 4441 | new zealand P: +64 6 353 3395 | M: +64 210 255 8576 E: todd@spidertracks.co.nz W: www.spidertracks.com

AMDG Todd Nine wrote:
I'm in the process of updating the 2.9.22 source of PowerDNS to be a bit more "Windows Friendly" and building it with Visual C++ 8 (2008). However, I'm having some issues I could use a hand with. Specifically, the authors of powerdns define their own following types
#ifdef NEED_POSIX_TYPEDEF typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; #endif
These types are used extensively in the code. Rather than prefix each reference with the boost:: namspace, I would like to make boot the standard namespace for these data types.
Does this do what you want?
#ifdef NEED_POSIX_TYPEDEF
#include
Everything includes the header file with the definition above, is there a way for me to do this? I haven't done C and C++ in 9 years, and even then only on very small projects and small patches, so your help is greatly appreciated.
In Christ, Steven Watanabe
participants (2)
-
Steven Watanabe
-
Todd Nine