#include <mpi.h>
static void test_opts(int* argc, char **argv[]){
-#if defined __linux__
- int found = 0, ret;
+ int found = 0;
+ int ret;
while ((ret = getopt(*argc, *argv, "s")) >= 0)
{
- switch (ret) {
- case 's':
+ if (ret == 's')
found = 1;
- break;
- }
}
if (found!=1){
printf("(smpi_)getopt failed ! \n");
}
-#endif
}
int main(int argc, char *argv[])