Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Hints on compiling Win32::GUI::Header

by BrowserUk (Pope)
on Jan 06, 2013 at 16:00 UTC ( #1011896=note: print w/replies, xml ) Need Help??

in reply to Hints on compiling Win32::GUI::Header

if there's a way to tell gcc to compile "0U-300U" into something that ends up being effectively -300 in the object code.

Eeek! Subtracting an unsigned integer from unsigned zero to derive an negative (signed) integer is just weird!

#define HDN_FIRST -300 #define HDN_BEGINTRACK (HDN_FIRST-26) into Header.xs and live with the compiler warnings. But that's just ugly.

If that works and the only concern is the compiler noise, perhaps you can shut them up by preceding your #defines with:

#undef HDN_FIRST #define HDN_FIRST -300 #define HDN_BEGINTRACK (HDN_FIRST-26)

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011896]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2018-06-25 03:16 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.