oled display problems.

I am trying to get an Oled 128X64 display to work from a uno. using the 4 wire spi.
I have downloaded the recommended library an examples.
Library = <Adafruit_SH1106.h>
I am attempting to run the example downloaded with the library. SH1106_128X64_spi

When I attempt to compile I get an error.

Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\Lynton\Documents\Arduino\libraries\Adafruit_SH1106-master\Adafruit_SH1106.cpp: In member function 'virtual void Adafruit_SH1106::drawPixel(int16_t, int16_t, uint16_t)':

C:\Users\Lynton\Documents\Arduino\libraries\Adafruit_SH1106-master\Adafruit_SH1106.cpp:113:14: error: 'swap' was not declared in this scope

swap(x, y);

^

C:\Users\Lynton\Documents\Arduino\libraries\Adafruit_SH1106-master\Adafruit_SH1106.cpp: In member function 'virtual void Adafruit_SH1106::drawFastHLine(int16_t, int16_t, int16_t, uint16_t)':

C:\Users\Lynton\Documents\Arduino\libraries\Adafruit_SH1106-master\Adafruit_SH1106.cpp:566:16: error: 'swap' was not declared in this scope

swap(x, y);

^

C:\Users\Lynton\Documents\Arduino\libraries\Adafruit_SH1106-master\Adafruit_SH1106.cpp: In member function 'virtual void Adafruit_SH1106::drawFastVLine(int16_t, int16_t, int16_t, uint16_t)':

C:\Users\Lynton\Documents\Arduino\libraries\Adafruit_SH1106-master\Adafruit_SH1106.cpp:634:16: error: 'swap' was not declared in this scope

swap(x, y);

^

exit status 1
Error compiling for board Arduino/Genuino Uno.

Any ideas most help full.

Which OLED do you have?
Can you link to the item?