libogc
libogc copied to clipboard
Linking problem with net_deinit function on GameCube
I think that void net_deinit(void); in network.h should be within the #ifdef HW_RVL / #endif block just over it.
The code is only defined in network_wii.c and compiling my code for GameCube will generate this
warning: undefined reference to `net_deinit'
Maybe (not sure), the other solution is to add this to lwip\network.c:
void net_deinit(void) {
return;
}
to make applications cross platform between GC and Wii i would suggest that adding a net_deinit in the GC code is a better solution. the application doesn't need to have a ifdef for that stuff imo.
ill have to look into what the net_init does in the gc code (lwip)