summaryrefslogtreecommitdiffstats
path: root/utils/nwztools/upgtools/keysig_search.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2020-06-17 23:31:31 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2020-10-11 13:08:03 +0200
commit1f338f70789fdb7d6bbd954cc1444f59a156e83c (patch)
tree272b9bcc571929293053e3cc2680ab27a8fae23a /utils/nwztools/upgtools/keysig_search.h
parent05fa8fc3435c74090430108001afeafe2d1e9d42 (diff)
downloadrockbox-1f338f7078.tar.gz
rockbox-1f338f7078.zip
nwztools/upgtools: add support for windows
In order to avoid the crypto++ mess, the code uses the Windows Cryptography API, which is standard. There is also some makefile magic to cross-compile: make PREFIX=i686-w64-mingw32- EXE_EXT=.exe I selected the option so that it should statically link supports libraries used by gcc (slsj and libwinpthread). Change-Id: Iaf07da23afe81ed217fb3921ce13367c5441514d
Diffstat (limited to 'utils/nwztools/upgtools/keysig_search.h')
-rw-r--r--utils/nwztools/upgtools/keysig_search.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nwztools/upgtools/keysig_search.h b/utils/nwztools/upgtools/keysig_search.h
index 72649e042e..67461d9b2b 100644
--- a/utils/nwztools/upgtools/keysig_search.h
+++ b/utils/nwztools/upgtools/keysig_search.h
@@ -49,7 +49,7 @@ struct keysig_search_desc_t
const char *comment;
};
-struct keysig_search_desc_t keysig_search_desc[KEYSIG_SEARCH_LAST];
+extern struct keysig_search_desc_t keysig_search_desc[KEYSIG_SEARCH_LAST];
bool keysig_search(int method, uint8_t *enc_buf, size_t buf_sz,
keysig_notify_fn_t notify, void *user, int nr_threads);