Rockbox mail archive
Subject: More libplugin blues :(
From: BlueChip (cs_bluechip_at_webtribe.net)
Date: 2004-06-21
Hey Bagder,
Thanks for making the first changes to the libplugin code :)
Sadly, the problem has moved :(
Each of my lib modules already declares BC_GFX_LOCAL just before it
includes bc_gfx.h
...this #define does NOT exist in the actual plugin code.
So... I have fixed the build like this:
...Hopefully, you can decode what actually went wrong and fix it in a more
suitable way?
...For note to others, the following code is offically a botch & a bug
report, please do not use this code in sincerity ;)
BC
P.S. How long between a CVS commit and a post to the CVS info on the
homepage, worst case?
/* Plugin header */
#if defined(SIMULATOR) && defined(BC_GFX_LOCAL) /* this is (hopefully) a
temporary botch */
/* this if for dir.h included from plugin.h */
#define WIN32
#define __MINGW32__
/* this stops the complaints about sim_icons */
#define HAVE_LCD_BITMAP
#undef SIMULATOR
#include "lcd.h"
#define SIMULATOR
/* now the thing we actually want */
#include "plugin.h"
/* tidy up */
#undef HAVE_LCD_BITMAP
#undef __MINGW32__
#undef WIN32
/* This just seems to have disappeared ...it should be in stdio.h but
isn't */
int printf(const char *format, ...);
#else
#include "plugin.h"
#endif
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Page was last modified "Jan 10 2012" The Rockbox Crew
|