Opened 12 years ago

Closed 12 years ago

#330 closed defect (fixed)

Compile fails on Windows due to __null being some reserved keyword

Reported by: stephanj Owned by:
Priority: medium Milestone:
Component: RoarAudio Main Package Version: 1.0beta7
Keywords: Cc:
Architecture: i386 Compiler: gcc/mingw
Difficulty: Kernel: None/Standalone
Operating System: Windows Parent Tickets:
Patch attached: no Protocol: None
Sound driver: WMM Topic: Porting

Description

mingw on windows complains about a reserved keyword it seems.

$ gcc --version
gcc.exe (GCC) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

a quickfix discussed on irc helped:

$ diff uuid.c  current/libroar/uuid.c
88c88
<  static const roar_uuid_t * __null = NULL,
---
>  static const roar_uuid_t * nix = NULL,
96c96
<   return __null;
---
>   return nix;
110c110
<  return __null;
---
>  return nix;

Subtickets

Change History (1)

comment:1 Changed 12 years ago by ph3-der-loewe

  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from current to 1.0beta7
Note: See TracTickets for help on using tickets.