Compile error in SD2Card library

Hello, after importing a project from arduino-ide via import-function I am getting comile-errors from one of the libraries.
for sure, there is no error when compiling in arduino-IDE.
my platformio.ini:

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
lib_deps = 
    paulstoffregen/Time@^1.6
    makuna/RTC@^2.3.5
    adafruit/DHT sensor library@^1.4.1
    marcoschwartz/LiquidCrystal_I2C@^1.1.4
    arduino-libraries/SD@^1.2.4
    greiman/SdFat@^2.0.2
    squix78/ESP8266_SSD1306@^4.1.0

The library is

" /* Arduino SdFat Library
   Copyright (C) 2010 by William Greiman
   This file is part of the Arduino SdFat Library "

the compile-error shows in Sd2PinMap.h:

I am very gratefull for help.

martin

You’re using the wrong SD libraries.

Just declare SD. The arduino-libraries/SD one is for AVR/ATMega-based Arduinos only

Thank you vers much! I´ve doublechecked and it is 100% correct.
So the twist was actually in the existing sketch and for some reason the arduino-compiler chose the internal sd.h over the included one and did not state an error.
However, when I change the sequence of the #include statements in the original arduino-IDE the compile indeed gives an error-message and stops the compiling.
Thank you very much for fast, brief and 100% correct answer!!