import os
from ctypeslib.dynamic_module import include
from ctypes import *

if os.name == "nt":
    _libc = CDLL("msvcrt")
else:
    _libc = CDLL(None)

include("""\
#include <stdio.h>

#ifdef _MSC_VER
#  include <fcntl.h>
#else
#  include <sys/fcntl.h>
#endif
""",
        persist=False)

import os
from ctypeslib.dynamic_module import include
from ctypes import *

if os.name == "nt":
    _libc = CDLL("msvcrt")
else:
    _libc = CDLL(None)

_gen_basename = include("""\
#include <stdio.h>

#ifdef _MSC_VER
#  include <fcntl.h>
#else
#  include <sys/fcntl.h>
#endif

/* Silly comment */
""",
        persist=False)

Store the basename of the generated files, to allow the unittests to clean up in the tearDown method.
Store the basename of the generated files, to allow the unittests to
clean up in the tearDown method.


git-svn-id: ac2c3632cb6543e7ab5fafd132c7fe15057a1882@52710 6015fed2-1504-0410-9fe1-9d1591cc4771
