ESP8266 & DS1307 Problem

Hello to all. First sorry if my English is poor.
I have use an ESP8266-12F as a network module and DS1307 as a Time module.
But I have problem in below code.
Dose somebody know what my problem is?

#include <ESP8266WiFi.h>
#include <Wire.h>
#include <RtcDS1307.h>
RtcDS1307<TwoWire> Rtc(Wire);

#define countof(a) (sizeof(a) / sizeof(a[0]))

void setup () 
{
   //Rtc.Begin();
}
void loop () 
{
}

and error when I want to compile the project by arduino:

"C:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include" "-IC:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include" "-IC:\Users\Leon\AppData\Local\Temp\build60a10d229dd176f6550bb76937ef7341.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10609 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP01"  -DESP8266 "-IC:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" "-IC:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\variants\generic" "-IC:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src" "-IC:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\Wire" "-IC:\Program Files (x86)\Arduino\libraries\Rtc-master\src" "C:\Users\Leon\AppData\Local\Temp\build60a10d229dd176f6550bb76937ef7341.tmp\sketch\DS1307.ino.cpp" -o "C:\Users\Leon\AppData\Local\Temp\build60a10d229dd176f6550bb76937ef7341.tmp\sketch\DS1307.ino.cpp.o"
In file included from C:\Users\Leon\Desktop\DS1307\DS1307.ino:3:0:

C:\Program Files (x86)\Arduino\libraries\Rtc-master\src/RtcDS1307.h: In member function 'uint8_t RtcDS1307<T_WIRE_METHOD>::GetMemory(uint8_t, uint8_t*, uint8_t)':

C:\Program Files (x86)\Arduino\libraries\Rtc-master\src/RtcDS1307.h:166:81: error: there are no arguments to 'min' that depend on a template parameter, so a declaration of 'min' must be available [-fpermissive]

             countBytes = min(countBytes, DS1307_REG_RAMEND - DS1307_REG_RAMSTART);

                                                                                 ^

C:\Program Files (x86)\Arduino\libraries\Rtc-master\src/RtcDS1307.h:166:81: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)

Using library ESP8266WiFi at version 1.0 in folder: C:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi 
Using library Wire at version 1.0 in folder: C:\Users\Leon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\Wire 
Using library Rtc-master at version 2.0.0 in folder: C:\Program Files (x86)\Arduino\libraries\Rtc-master 
exit status 1
Error compiling for board Generic ESP8266 Module.

And picture of error:

Very thank you.

Nobody can help me? Thanks.