ps1

hi guys

i have a problem....

i am trying to run this code...

/*  PSX Controller Decoder Library (Psx.pde)
      Written by: Kevin Ahrendt June 22nd, 2008
      
      Controller protocol implemented using Andrew J McCubbin's analysis.
      http://www.gamesx.com/controldata/psxcont/psxcont.htm
      
      Shift command is based on tutorial examples for ShiftIn and ShiftOut
      functions both written by Carlyn Maw and Tom Igoe
      http://www.arduino.cc/en/Tutorial/ShiftIn
      http://www.arduino.cc/en/Tutorial/ShiftOut

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#include <Psx.h>                                          // Includes the Psx Library 

#define dataPin 2
#define cmndPin 3
#define attPin 4
#define clockPin 5

#define LEDPin 13

Psx Psx;                                                  // Initializes the library

unsigned int data = 0;                                    // data stores the controller response

void setup()
{
  Psx.setupPins(dataPin, cmndPin, attPin, clockPin, 10);  // Defines what each pin is used
                                                          // (Data Pin #, Cmnd Pin #, Att Pin #, Clk Pin #, Delay)
                                                          // Delay measures how long the clock remains at each state,
                                                          // measured in microseconds.
                                                          
  pinMode(LEDPin, OUTPUT);                                // Establishes LEDPin as an output so the LED can be seen
}

void loop()
{
  data = Psx.read();                                      // Psx.read() initiates the PSX controller and returns
                                                          // the button data

  if (data & psxR2)                                       // If the data anded with a button's hex value is true,
                                                          // it signifies the button is pressed. Hex values for each
                                                          // button can be found in Psx.h
  {
    digitalWrite(LEDPin, HIGH);                           // If button is pressed, turn on the LED
  }
  else
  {
    digitalWrite(LEDPin, LOW);                            // If the button isn't pressed, turn off the LED
  }
}

but get this error when i go to upload.....

c:/documents and settings/skip56/desktop/v4/arduino-0017/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'

c:/documents and settings/skip56/desktop/v4/arduino-0017/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'

c:/documents and settings/skip56/desktop/v4/arduino-0017/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'

can anybody help ???

many thanks

Skip

Using which Arduino? This looks like a mismatch between the board selected and the include files that are actually included for the board.