]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
silence some warnings due to opaque structure definitions.
authorMichael Jerris <mike@jerris.com>
Thu, 25 Sep 2008 22:02:32 +0000 (22:02 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 25 Sep 2008 22:02:32 +0000 (22:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9651 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_managed/freeswitch_managed.h

index d7eae8f635b8ccd0d7af9d851549a16ea53888f3..7de5ab4b97b9b6ddd3534a3c54eaf97c54b80462 100644 (file)
@@ -39,6 +39,35 @@ SWITCH_BEGIN_EXTERN_C
 #include <switch_cpp.h>\r
 \r
 #ifdef _MANAGED\r
+// this section remove linker error LNK4248 for these opaque structures\r
+       struct switch_core_session {char foo[];};\r
+       struct apr_pool_t {char foo[];};\r
+       struct switch_channel {char foo[];};\r
+       struct apr_thread_t {char foo[];};\r
+       struct switch_hash {char foo[];};\r
+       struct apr_thread_mutex_t {char foo[];};\r
+       struct switch_network_list {char foo[];};\r
+       struct switch_xml_binding {char foo[];};\r
+       struct apr_sockaddr_t {char foo[];};\r
+       struct switch_core_port_allocator {char foo[];};\r
+       struct switch_media_bug {char foo[];};\r
+       struct switch_rtp {char foo[];};\r
+       struct sqlite3_stmt {char foo[];};\r
+       struct switch_buffer {char foo[];};\r
+       struct switch_ivr_menu {char foo[];};\r
+       struct switch_event_node {char foo[];};\r
+       struct switch_ivr_digit_stream_parser {char foo[];};\r
+       struct sqlite3 {char foo[];};\r
+       struct switch_ivr_digit_stream {char foo[];};\r
+       struct real_pcre {char foo[];};\r
+       struct HashElem {char foo[];};\r
+       struct switch_ivr_menu_xml_ctx {char foo[];};\r
+       struct apr_file_t {char foo[];};\r
+       struct apr_thread_rwlock_t {char foo[];};\r
+       struct apr_pollfd_t {char foo[];};\r
+       struct apr_queue_t {char foo[];};\r
+       struct apr_socket_t {char foo[];};\r
+// LNK Error\r
 \r
 typedef char* (CALLBACK* inputtype)(void * input, switch_input_type_t type);\r
 typedef void (CALLBACK* hanguptype)();\r