|
Home > Archive > Unix Programming > January 2008 > Porting Windows program to BSD
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Porting Windows program to BSD
|
|
| drhowarddrfine 2007-12-26, 1:39 am |
| I have an Open Source Windows program I would like to port to
FreeBSD. I tried compiling it 'as is' and, so far, it only trips up
on MS/Windows definitions, such as 'ulong'. Is there a cross-check
list to find equivalent typedefs, defines, etc. between gcc and
Windows stuff? Is there a software 'converter' of sorts, too?
| |
| Magnus Wissler 2007-12-27, 7:33 am |
| On Dec 26, 7:13 am, drhowarddrfine <robbel...@gmail.com> wrote:
> I have an Open Source Windows program I would like to port to
> FreeBSD. I tried compiling it 'as is' and, so far, it only trips up
> on MS/Windows definitions, such as 'ulong'. Is there a cross-check
> list to find equivalent typedefs, defines, etc. between gcc and
> Windows stuff? Is there a software 'converter' of sorts, too?
While I don't know of any automagic converters, #including
<inttypes.h> will probably let you use portable type definitions even
from the Windows platform (they have inttypes.h now, don't they?).
| |
| Måns Rullgård 2007-12-27, 1:24 pm |
| Magnus Wissler <magnus.wissler@gmail.com> writes:
> On Dec 26, 7:13 am, drhowarddrfine <robbel...@gmail.com> wrote:
>
> While I don't know of any automagic converters, #including
> <inttypes.h> will probably let you use portable type definitions even
> from the Windows platform (they have inttypes.h now, don't they?).
No, they still don't.
--
Måns Rullgård
mans@mansr.com
| |
| Roger Leigh 2007-12-31, 7:23 pm |
| Måns Rullgård <mans@mansr.com> writes:
> Magnus Wissler <magnus.wissler@gmail.com> writes:
>
>
> No, they still don't.
How about the C standard <stdint.h> ?
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
| |
| Måns Rullgård 2007-12-31, 7:23 pm |
| Roger Leigh <rleigh@whinlatter.ukfsn.org> writes:
> Måns Rullgård <mans@mansr.com> writes:
>
>
> How about the C standard <stdint.h> ?
No, not that one either (and both are standard C).
Some kind person has composed msvc-compatible stdint.h and inttypes.h
and made them available at http://code.google.com/p/msinttypes/
--
Måns Rullgård
mans@mansr.com
| |
|
| On Dec 27 2007, 12:58 pm, M=E5ns Rullg=E5rd <m...@mansr.com> wrote:
> Magnus Wissler <magnus.wiss...@gmail.com> writes:
>
>
> No, they still don't.
Gee, I wonder why not. Paging antitrust department...
>
> --
> M=E5ns Rullg=E5rd
> m...@mansr.com
|
|
|
|
|