If you are using the example project slavefifosync from FX3 SDK, then you will not find "#define STREAM_IN_OUT". This can be found only in the firmware provided by the application note. Please download all the files for the application note AN65974. This can be found from the following link:
After going to the above mentioned link, download AN65974.zip given in related files. After extracting the .zip file, you will have a folder named FX3 firmware in it. Inside the FX3 firmware folder, you will find slavefifosync. Import this project into a workspace and check whether you find the "#define STREAM_IN_OUT" in cyfxslfifosync.h .