On Feb 17, 2011, at 1:18 AM, Albrecht Schlosser wrote:
> On 16.02.2011 20:59, [email protected] wrote:
>> On 16/02/11 17:10, Albrecht Schlosser wrote:
>>> On 16.02.2011 17:20, Michael Sweet wrote:
>>> 
>>>>> I haven't used jpeg8 much - is this normal?
>>>> 
>>>> Yes, and you should have seen the same for the older JPEG libraries
>>>> (unless of course somebody went through and renamed the variables
>>>> in question...)
>>> 
>>> Yup, somebody ;-) must have done that before the initial addition to
>>> FLTK 1.x on Jul 5, 2004.
>> 
>> Ah, right. That would explain it.
>> 
>> Do we want to do the same again, then?
> 
> I've just tested a simple alternative, and it compiled w/o warnings:
> 
> Index: jconfig.h
> ===================================================================
> --- jconfig.h   (revision 8436)
> +++ jconfig.h   (working copy)
> @@ -7,6 +7,8 @@
>  #ifdef __CHAR_UNSIGNED__
>  #  define CHAR_IS_UNSIGNED
>  #endif /* __CHAR_UNSIGNED__ */
> +#define HAVE_STDLIB_H 1
> +#define main jpeg_main
>  /* Define this if you get warnings about undefined structures. */
>  #undef INCOMPLETE_TYPES_BROKEN
> 
> No time now to check whether there are any side effects.
> 
> ...
> 
> Well, I just saw that Mike fixed it already by changing main to mainp
> in all sources, hence this is moot. But anyway, maybe for the next
> release...

Defining "main" is likely to cause problems; now that we are up-to-date we 
should be able to just apply diffs from the previous JPEG release to keep 
up-to-date.

________________________________________
Michael Sweet, Easy Software Products

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to