X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.c;h=a71977daf9041e896599c5a1050c2525328414f3;hb=c4992c6d863d0ead91d84d19bbfe1643d720b205;hp=c2b53da6e3dc7ae203e36a7d9f954b62e9468bf2;hpb=6cacbd9575e03c37057719a97bf260217c4e275f;p=openocd.git diff --git a/src/main.c b/src/main.c index c2b53da6e3..a71977daf9 100644 --- a/src/main.c +++ b/src/main.c @@ -22,6 +22,7 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include "openocd.h" /* This is the main entry for developer PC hosted OpenOCD. * @@ -32,8 +33,6 @@ * Those applications will have their own main() implementation * and use bits and pieces from openocd.c. */ -extern int openocd_main(int argc, char *argv[]); - int main(int argc, char *argv[]) { return openocd_main(argc, argv);