Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src/compat.c:342:24: warning: declaration specifier missing, defaulting to 'int'
- typedef bool (WINAPI * aSHGetSpecialFolderPathAtype)(HWND, LPTSTR, int, BOOL);
- ~~~~~~ ^
- int
- src/compat.c:342:15: warning: 'stdcall' only applies to function types; type here is 'int *'
- typedef bool (WINAPI * aSHGetSpecialFolderPathAtype)(HWND, LPTSTR, int, BOOL);
- ^
- c:/mingw/include\windef.h:113:16: note: expanded from macro 'WINAPI'
- #define WINAPI __stdcall
- ^
- c:/mingw/include\windef.h:81:34: note: expanded from macro '__stdcall'
- #define __stdcall __attribute__((stdcall))
- ^
- src/compat.c:342:14: error: function cannot return function type 'int (HWND, LPTSTR, int, BOOL)'
- typedef bool (WINAPI * aSHGetSpecialFolderPathAtype)(HWND, LPTSTR, int, BOOL);
- ^
- src/compat.c:348:5: error: use of undeclared identifier 'aSHGetSpecialFolderPathAtype'; did you mean 'SHGetSpecialFolderPathA'?
- aSHGetSpecialFolderPathAtype aSHGetSpecialFolderPathA;
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHGetSpecialFolderPathA
- c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
- BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
- ^
- src/compat.c:348:33: error: expected ';' after expression
- aSHGetSpecialFolderPathAtype aSHGetSpecialFolderPathA;
- ^
- ;
- src/compat.c:348:34: error: use of undeclared identifier 'aSHGetSpecialFolderPathA'; did you mean 'SHGetSpecialFolderPathA'?
- aSHGetSpecialFolderPathAtype aSHGetSpecialFolderPathA;
- ^~~~~~~~~~~~~~~~~~~~~~~~
- SHGetSpecialFolderPathA
- c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
- BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
- ^
- src/compat.c:362:5: error: use of undeclared identifier 'aSHGetSpecialFolderPathA'; did you mean 'SHGetSpecialFolderPathA'?
- aSHGetSpecialFolderPathA = (aSHGetSpecialFolderPathAtype)GetProcAddress(hShell32, "SHGetSpecialFolderPathA");
- ^~~~~~~~~~~~~~~~~~~~~~~~
- SHGetSpecialFolderPathA
- c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
- BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
- ^
- src/compat.c:362:33: error: use of undeclared identifier 'aSHGetSpecialFolderPathAtype'; did you mean 'SHGetSpecialFolderPathA'?
- aSHGetSpecialFolderPathA = (aSHGetSpecialFolderPathAtype)GetProcAddress(hShell32, "SHGetSpecialFolderPathA");
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHGetSpecialFolderPathA
- c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
- BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
- ^
- src/compat.c:362:30: error: non-object type 'BOOL (HWND, LPSTR, int, BOOL) __attribute__((stdcall))' is not assignable
- aSHGetSpecialFolderPathA = (aSHGetSpecialFolderPathAtype)GetProcAddress(hShell32, "SHGetSpecialFolderPathA");
- ~~~~~~~~~~~~~~~~~~~~~~~~ ^
- src/compat.c:363:9: error: use of undeclared identifier 'aSHGetSpecialFolderPathA'; did you mean 'SHGetSpecialFolderPathA'?
- if (aSHGetSpecialFolderPathA != NULL)
- ^~~~~~~~~~~~~~~~~~~~~~~~
- SHGetSpecialFolderPathA
- c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
- BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
- ^
- src/compat.c:364:23: error: implicit declaration of function 'aSHGetSpecialFolderPathA' [-Werror,-Wimplicit-function-declaration]
- if (SUCCEEDED(aSHGetSpecialFolderPathA(NULL, appdata, CSIDL_APPDATA, FALSE)))
- ^
- c:/mingw/include\winerror.h:1869:38: note: expanded from macro 'SUCCEEDED'
- #define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
- ^
- src/compat.c:364:23: note: did you mean 'SHGetSpecialFolderPathA'?
- if (SUCCEEDED(aSHGetSpecialFolderPathA(NULL, appdata, CSIDL_APPDATA, FALSE)))
- ^~~~~~~~~~~~~~~~~~~~~~~~
- SHGetSpecialFolderPathA
- c:/mingw/include\winerror.h:1869:38: note: expanded from macro 'SUCCEEDED'
- #define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
- ^
- c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
- BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
- ^
- src/compat.c:349:11: warning: ISO C90 forbids mixing declarations and code [-pedantic,-Wdeclaration-after-statement]
- TCHAR appdata[MAX_PATH];
- ^
- 3 warnings and 9 errors generated.
- Failed building ../eobj_win/compat.o from src/compat.c!
- make[1]: *** [../eobj_win/compat.o] Error 1
- make: *** [enginelib] Error 2
Advertisement
Add Comment
Please, Sign In to add comment