Creating directory in A5 for Linux and Windows
Hi. I'm creating program in which I use funkction "mkdir" for creating directories. In Linux it must look like - mkdir(name_of_dir,0777) - and for Windows just
- mkdir(name_of_dir). How ca I made one source code that will compile in both systems with mkdir ? Now I have to change mkdir syntax when I want to compile for Win or Linux and therefore have two source codes. Or is other way to create directory which will be the same for both systems? Thanks for answers.
you could try al_make_directory. If you must use mkdir, you can use ifdef's to pick which mkdir to use.
I guess the autolink works only in <code> tags?
Some functions may not be in matthew's api database? My best guess.
Well, yeah. it doens't work in pre tags. the auto linking is part of the syntax highlighting. Also try `this type of code tag`
Thread #615073. Printed from Allegro.cc
Thanks, guys. I was thinking that code tags like al_get_standard_path refused to be inline for some reason.