forked from Lainports/freebsd-ports
fex/fex/File_Extractor.h:181:58: error: cannot initialize return object of type 'blargg_err_t' (aka 'const char *') with an lvalue of type 'const int'
inline blargg_err_t File_Extractor::rewind_v() { return blargg_ok; }
PR: 223538
Submitted by: w.schwarzenfeld@utanet.at (based on)
11 lines
370 B
C
11 lines
370 B
C
--- fex/fex/blargg_common.h.orig 2019-02-11 08:38:11 UTC
|
|
+++ fex/fex/blargg_common.h
|
|
@@ -12,7 +12,7 @@
|
|
typedef const char* blargg_err_t; // 0 on success, otherwise error string
|
|
|
|
// Success; no error
|
|
-int const blargg_ok = 0;
|
|
+const char* const blargg_ok = 0;
|
|
|
|
// BLARGG_RESTRICT: equivalent to C99's restrict, where supported
|
|
#if __GNUC__ >= 3 || _MSC_VER >= 1100
|