Improve sqngen.c for compatibility with windows
This commit is contained in:
@@ -35,6 +35,11 @@
|
||||
#include <gsl/gsl_rng.h>
|
||||
#include <gsl/gsl_randist.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#define sleep(a) Sleep(a * 1000)
|
||||
#endif
|
||||
|
||||
#define ONE 4294967295u
|
||||
|
||||
#include <iostream>
|
||||
@@ -442,7 +447,7 @@ int main (int argc, char *argv[]) {
|
||||
int gmin_max;
|
||||
fstream data;
|
||||
char *filename_common;
|
||||
fprintf(stdout,"********************** SQNGEN (Edited by Joao Carreira) ***********************\n");
|
||||
fprintf(stdout,"********************** sqngen ***********************\n");
|
||||
if (argc<7) {
|
||||
arg_error();
|
||||
return 0;
|
||||
@@ -780,5 +785,4 @@ int main (int argc, char *argv[]) {
|
||||
statistics(filename, num_of_samples, ploss_ter, mean_length_of_burst_ter, density_ter, pisolated_loss_ter, mean_length_of_good_burst_ter, gmin, gmin_max);
|
||||
}
|
||||
}
|
||||
fprintf(stdout,"********************************* Exit SQNGEN *********************************\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user