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:

platform = espressif8266
board = nodemcuv2
framework = arduino
lib_deps = 
    adafruit/DHT sensor library@^1.4.1

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.


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!!