Browse Source

compilation errors

David Rose 16 years ago
parent
commit
94ed0c76c2
2 changed files with 3 additions and 1 deletions
  1. 1 1
      direct/src/plugin/p3d_lock.h
  2. 2 0
      direct/src/plugin_npapi/ppBrowserObject.cxx

+ 1 - 1
direct/src/plugin/p3d_lock.h

@@ -45,7 +45,7 @@
 // SPAWN_THREAD call.  The wrapper will in turn call the method
 // function you provide.
 #define THREAD_CALLBACK_DECLARATION(class, callback_function) \
-  static DWORD class::                                        \
+  static DWORD WINAPI class::                                        \
   win_ ## callback_function(LPVOID data) {        \
     ((class *)data)->callback_function();       \
     return 0;                                   \

+ 2 - 0
direct/src/plugin_npapi/ppBrowserObject.cxx

@@ -185,4 +185,6 @@ get_class_definition() {
     _browser_object_class->_set_property = &object_set_property;
     _browser_object_class->_call = &object_call;
   }
+
+  return _browser_object_class;
 }