[OSKITTCP]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 17 Jun 2011 09:43:02 +0000 (09:43 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 17 Jun 2011 09:43:02 +0000 (09:43 +0000)
* Fix msvc build. The tcpip driver compiles and links with msvc as a result.

svn path=/trunk/; revision=52296

reactos/lib/drivers/oskittcp/include/oskitfreebsd.h
reactos/lib/drivers/oskittcp/oskittcp/uipc_socket.c

index f7d4850..e842227 100644 (file)
@@ -17,21 +17,8 @@ extern void oskittcp_die(const char *file, int line);
 #define ovbcopy(src,dst,n) memmove(dst,src,n)
 #define bzero(x,y) memset(x,0,y)
 #define bcopy(src,dst,n) memcpy(dst,src,n)
-#ifdef _MSC_VER
-static __inline void panic ( const char* fmt, ... )
-{
-       va_list arg;
-       va_start(arg, fmt);
-       printf ( "oskit PANIC: " );
-       vprintf ( fmt, arg );
-       va_end(arg);
-       // TODO FIXME - print stack trace...
-       oskittcp_die("<unknown file>",-1);
-}
-#else//_MSC_VER
 #define panic(...) do { printf(__VA_ARGS__); \
         oskittcp_die(__FILE__,__LINE__); } while(0)
-#endif//_MSC_VER
 #define kmem_malloc(x,y,z) malloc(y,0,0)
 
 #endif//_OSKITFREEBSD_H
index 2bd3c7a..4a9451d 100644 (file)
@@ -610,7 +610,7 @@ restart:
                if ((so->so_state & (SS_ISCONNECTED|SS_ISCONNECTING)) == 0 &&
                    (so->so_proto->pr_flags & PR_CONNREQUIRED)) {
                    printf("so: %x\n", so);
-                   __asm__("int3");
+                   __debugbreak();
                        error = ENOTCONN;
                        goto release;
                }