Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #402379
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: [c+ai] one night with image codec |
| Date | 2026-09-25 10:49 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <1195ci0$3bbk8$2@dont-email.me> (permalink) |
| References | <119391l$2ng62$1@dont-email.me> <1193c6q$2on2p$1@dont-email.me> |
On 24/09/2026 16:30, bart wrote:
> On 24/09/2026 14:36, fir wrote:
>> i once was writing on this -
>
>> #define _WIN32_WINNT 0x0501
>> #define WIN32_LEAN_AND_MEAN
>> #define WIN32_EXTRA_LEAN
>> #include <windows.h>
>> #include <Mmsystem.h>
>> #include<math.h>
>> #include<stdio.h>
>> #include<stdlib.h>
>> #include <stdint.h>
>>
>> #include "green-fire.h"
>
> What's the point of posting a 1200-line program without the headers and
> any other dependencies needed to compile it?
>
> In any case, you should be posting links to github etc for programs this
> big.
>
>> int LoadBitmap(const char *filename, Bitmap *b)
>> {
>
> This clashes with LoadBitmap from windows.h (where it is an alias for
> LoadBitmapA). It has a different signature.
>
> How did you manage to get this to compile? Is there some magic in green-
> fire.h that makes it possible?
>
>
What do you mean by "alias" here ? Do you mean a macro? A small static
inline function? An identifier defined with an "alias" attribute
(that's a gcc attribute, but I have no idea if it works on Windows
targets) ? A C++ constexpr function alias?
How this will work or not depends on what you mean.
And of course it depends on which <windows.h> is used - it is not a
remotely standardised header, and details vary enormously with different
toolchains, libraries, versions, etc.
Obviously Fir needs to answer much of this.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 15:36 +0200
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 16:06 +0200
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 16:17 +0200
Re: [c+ai] one night with image codec bart <bc@freeuk.com> - 2026-09-24 15:30 +0100
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 16:45 +0200
Re: [c+ai] one night with image codec "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-09-24 16:31 -0700
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-25 02:05 +0200
Re: [c+ai] one night with image codec "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-09-27 15:05 -0700
Re: [c+ai] one night with image codec bart <bc@freeuk.com> - 2026-09-28 00:44 +0100
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-28 04:22 +0200
Re: [c+ai] one night with image codec Paul <nospam@needed.invalid> - 2026-09-28 04:27 -0400
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 18:27 +0200
Re: [c+ai] one night with image codec David Brown <david.brown@hesbynett.no> - 2026-09-25 10:38 +0200
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-25 10:57 +0200
Re: [c+ai] one night with image codec David Brown <david.brown@hesbynett.no> - 2026-09-25 10:49 +0200
Re: [c+ai] one night with image codec bart <bc@freeuk.com> - 2026-09-25 10:49 +0100
Re: [c+ai] one night with image codec Jim Jackson <jj@franjam.org.uk> - 2026-09-25 12:01 +0000
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-26 02:51 +0200
Re: [c+ai] one night with image codec Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-10-01 00:08 +0800
csiph-web