Commit 7a3e4faa authored by Armin Rigo's avatar Armin Rigo
Browse files

Fix

--HG--
branch : ctypesdef
parent e9011d41d639
......@@ -11,14 +11,14 @@ if not sys.platform.startswith('linux'):
raise Exception("Linux-only demo")
DIR = ctypes.OPAQUE # <--
DIR = ctypes.OPAQUE() # <--
DIR_p = ctypes.POINTER(DIR)
class DIRENT(ctypes.PartialStructure): # <--
_fields_ = [
('d_type', ctypes.c_ubyte), # type of file; not supported
# by all file system types
('d_name', ctypes.c_char * Ellipsis), # filename
('d_name', ctypes.c_char * Ellipsis), # <--
]
DIRENT_p = ctypes.POINTER(DIRENT)
DIRENT_pp = ctypes.POINTER(DIRENT_p)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment