summaryrefslogtreecommitdiff
path: root/odk/examples/cpp/counter/countermain.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/cpp/counter/countermain.cxx')
-rw-r--r--odk/examples/cpp/counter/countermain.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odk/examples/cpp/counter/countermain.cxx b/odk/examples/cpp/counter/countermain.cxx
index 5328f356124e..ce3b277e3044 100644
--- a/odk/examples/cpp/counter/countermain.cxx
+++ b/odk/examples/cpp/counter/countermain.cxx
@@ -48,6 +48,7 @@
#include <stdio.h>
+#include <sal/main.h>
#include <rtl/ustring.hxx>
#include <osl/diagnose.h>
@@ -71,7 +72,7 @@ using namespace ::rtl;
//=======================================================================
-int SAL_CALL main(int argc, char **argv)
+SAL_IMPLEMENT_MAIN()
{
Reference< XSimpleRegistry > xReg = createSimpleRegistry();
OSL_ENSURE( xReg.is(), "### cannot get service instance of \"com.sun.star.regiystry.SimpleRegistry\"!" );