def _write_header_includes(self, fp):
      lines = _genCommentHeader('INCLUDES')
      lines.append('#ifdef _MSC_VER')
      lines.append('#include <Windows.h>')
      lines.append('#else')
      lines.append('#include <pthread.h>')
      lines.append('#endif //_MSC_VER')
      lines.append('#include "osmacro.h"')
      fp.write('\n'.join(lines)+'\n\n')