win32 compat

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@84 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-08-11 05:58:52 +00:00
parent c519ffd338
commit 97ed74f2af
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,6 @@
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <constr_CHOICE.h>
#include <netinet/in.h> /* for ntohl */
#include <assert.h>
/*

View File

@ -3,9 +3,14 @@
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <constr_SET.h>
#include <netinet/in.h> /* for ntohl() */
#include <assert.h> /* for assert() */
#ifndef WIN32
#include <netinet/in.h> /* for ntohl() */
#else
#include <winsock2.h> /* for ntohl() */
#endif
/*
* Number of bytes left for this structure.
* (ctx->left) indicates the number of bytes _transferred_ for the structure.