@@ -59,7 +59,9 @@ typedef struct nbio_image_handle
59
59
bool is_blocking_on_processing ;
60
60
bool is_finished ;
61
61
transfer_cb_t cb ;
62
+ #ifdef HAVE_RPNG
62
63
struct rpng_t * handle ;
64
+ #endif
63
65
unsigned processing_pos_increment ;
64
66
unsigned pos_increment ;
65
67
uint64_t frame_count ;
@@ -301,6 +303,8 @@ static int rarch_main_data_http_iterate_poll(http_handle_t *http)
301
303
#endif
302
304
303
305
#ifdef HAVE_MENU
306
+
307
+ #ifdef HAVE_RPNG
304
308
static int cb_image_menu_wallpaper_upload (void * data , size_t len )
305
309
{
306
310
nbio_handle_t * nbio = (nbio_handle_t * )data ;
@@ -395,7 +399,6 @@ static int cb_nbio_image_menu_wallpaper(void *data, size_t len)
395
399
396
400
return 0 ;
397
401
}
398
- #endif
399
402
400
403
static int rarch_main_data_image_iterate_poll (nbio_handle_t * nbio )
401
404
{
@@ -511,6 +514,9 @@ static int rarch_main_data_image_iterate_transfer_parse(nbio_handle_t *nbio)
511
514
512
515
return 0 ;
513
516
}
517
+ #endif
518
+
519
+ #endif
514
520
515
521
static int cb_nbio_default (void * data , size_t len )
516
522
{
@@ -569,7 +575,7 @@ static int rarch_main_data_nbio_iterate_poll(nbio_handle_t *nbio)
569
575
570
576
if (elem1 [0 ] != '\0' )
571
577
{
572
- #ifdef HAVE_MENU
578
+ #if defined( HAVE_MENU ) && defined( HAVE_RPNG )
573
579
if (!strcmp (elem1 , "cb_menu_wallpaper" ))
574
580
nbio -> cb = & cb_nbio_image_menu_wallpaper ;
575
581
#endif
@@ -648,6 +654,7 @@ static int rarch_main_data_nbio_iterate_parse(nbio_handle_t *nbio)
648
654
649
655
#ifdef HAVE_LIBRETRODB
650
656
#ifdef HAVE_MENU
657
+
651
658
static void rarch_main_data_db_iterate (bool is_thread ,
652
659
data_runloop_t * runloop )
653
660
{
@@ -670,10 +677,12 @@ static void rarch_main_data_db_iterate(bool is_thread,
670
677
break ;
671
678
}
672
679
}
680
+
673
681
#endif
674
682
#endif
675
683
676
684
685
+ #ifdef HAVE_RPNG
677
686
static void rarch_main_data_nbio_image_iterate (bool is_thread ,
678
687
data_runloop_t * runloop )
679
688
{
@@ -708,6 +717,7 @@ static void rarch_main_data_nbio_image_iterate(bool is_thread,
708
717
break ;
709
718
}
710
719
}
720
+ #endif
711
721
712
722
static void rarch_main_data_nbio_iterate (bool is_thread , data_runloop_t * runloop )
713
723
{
@@ -893,7 +903,9 @@ void rarch_main_data_free(void)
893
903
static void data_runloop_iterate (bool is_thread , data_runloop_t * runloop )
894
904
{
895
905
rarch_main_data_nbio_iterate (is_thread , runloop );
906
+ #ifdef HAVE_RPNG
896
907
rarch_main_data_nbio_image_iterate (is_thread , runloop );
908
+ #endif
897
909
#ifdef HAVE_OVERLAY
898
910
rarch_main_data_overlay_iterate (is_thread , runloop );
899
911
#endif
@@ -970,6 +982,7 @@ static void rarch_main_data_thread_init(void)
970
982
}
971
983
#endif
972
984
985
+ #ifdef HAVE_RPNG
973
986
static void rarch_main_data_nbio_image_upload_iterate (bool is_thread ,
974
987
data_runloop_t * runloop )
975
988
{
@@ -994,6 +1007,7 @@ static void rarch_main_data_nbio_image_upload_iterate(bool is_thread,
994
1007
break ;
995
1008
}
996
1009
}
1010
+ #endif
997
1011
998
1012
void rarch_main_data_iterate (void )
999
1013
{
@@ -1019,7 +1033,9 @@ void rarch_main_data_iterate(void)
1019
1033
#ifdef HAVE_OVERLAY
1020
1034
rarch_main_data_overlay_image_upload_iterate (false, runloop );
1021
1035
#endif
1036
+ #ifdef HAVE_RPNG
1022
1037
rarch_main_data_nbio_image_upload_iterate (false, runloop );
1038
+ #endif
1023
1039
1024
1040
if (data_runloop_msg [0 ] != '\0' )
1025
1041
{
0 commit comments