embeddedmz / ftpclient-cpp

C++ client for making FTP requests
MIT License
204 stars 65 forks source link

Update CMakeLists.txt and FTPClient.h #19

Closed nicraMarcin closed 2 years ago

embeddedmz commented 3 years ago

I will look at your commit soon. Thanks !

embeddedmz commented 3 years ago

Do you need unistd for what ? It doesn't exist on Windows (it's and ifndef not ifdef !) direct.h is need for Windows (_mkdir), I think you forget to define the preprocessor macro "LINUX"

I suggest this if it's necessary for your build :

#ifndef LINUX
#include <direct.h>  // mkdir
#else
#include <unistd.h>
#endif
embeddedmz commented 2 years ago

Hi @nicraMarcin

Something similar has been made in the last commit for the CMakeLists.txt file. The modifications to the 2 other files are not necessary for now.

Best regards.